summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rbot/ircbot.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/rbot/ircbot.rb b/rbot/ircbot.rb
index 26f3f8bb..5c72e40b 100644
--- a/rbot/ircbot.rb
+++ b/rbot/ircbot.rb
@@ -331,7 +331,7 @@ class IrcBot
# say something (PRIVMSG) to channel/nick +where+
def say(where, message)
- message.to_s.each_line { |line|
+ message.to_s.gsub(/[\r\n]+/, "\n").each_line { |line|
line.chomp!
next unless(line.length > 0)
unless((where =~ /^#/) && (@channels.has_key?(where) && @channels[where].quiet))