diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-06-23 01:35:43 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-06-23 01:35:43 +0200 |
commit | 5b255f53971ebbd542ec762940c850b0a4438b55 (patch) | |
tree | 002a00bb97f29f6078d3d6e63c9f78e0f427fd13 /lib/rbot/message.rb | |
parent | 847a977b228b35f5ab281a31dd3724a4db887dff (diff) |
+ strip all colours and formatting when sending to a +c or +C channel
Diffstat (limited to 'lib/rbot/message.rb')
-rw-r--r-- | lib/rbot/message.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rbot/message.rb b/lib/rbot/message.rb index fddbef5f..abe53ce0 100644 --- a/lib/rbot/message.rb +++ b/lib/rbot/message.rb @@ -33,6 +33,7 @@ module Irc Reverse = "\026" Italic = "\011" NormalText = "\017" + AttributeRx = /#{Bold}|#{Underline}|#{Reverse}|#{Italic}|#{NormalText}/ # Color is prefixed by \003 and followed by optional # foreground and background specifications, two-digits-max |