message.rb: correct @plainmessage and @message for CTCP messages
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sat, 9 Aug 2008 18:25:41 +0000 (20:25 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sat, 9 Aug 2008 18:25:41 +0000 (20:25 +0200)
commit2d2e6d1fb24e5d687eab7e77bf251ad777ca736d
treedeb30af4990b4e3e2452019f4d95fce20051a7e5
parentbf8d3dc80f6103fdd8e2a629880ab0470d516d70
message.rb: correct @plainmessage and @message for CTCP messages

After CTCP parsing, @plainmessage was not defined correctly (as it still
contained the CTCP command), and @plainmessage and @message were not
being cleaned up correctly.

This manifested itself e.g. with spurious \001ACTION and other strange
unusual byte sequence popping up in markov-generated text.

Fix by redefining @plainmessage and @message appropriately in CTCP
handling.
lib/rbot/message.rb