diff options
Diffstat (limited to 'lib/rbot/ircbot.rb')
-rw-r--r-- | lib/rbot/ircbot.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index 3cd0cae8..932cc3b7 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -914,6 +914,12 @@ class Bot end multi_line = original_message.to_s.gsub(/[\r\n]+/, "\n") + + # if target is a channel with +c or +C modes, strip colours + if where.kind_of?(Channel) and where.mode.any?('c', 'C') + multi_line.replace(BasicUserMessage.stripcolour(multi_line).gsub(AttributeRx,'')) + end + messages = Array.new case opts[:newlines] when :join |