diff options
Diffstat (limited to 'lib/rbot/message.rb')
-rw-r--r-- | lib/rbot/message.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rbot/message.rb b/lib/rbot/message.rb index 97e3673a..1fb68e20 100644 --- a/lib/rbot/message.rb +++ b/lib/rbot/message.rb @@ -328,7 +328,8 @@ module Irc # free splitting for plugins @params = @message.dup - if @params.gsub!(/^\s*(\S+)[\s$]*/, "") + # Created messges (such as by fake_message) can contain multiple lines + if @params.gsub!(/\A\s*(\S+)[\s$]*/m, "") @plugin = $1.downcase @params = nil unless @params.length > 0 end |