rfc2812: better handling of incomplete mode lines
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 7 Jan 2009 22:39:33 +0000 (23:39 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 8 Jan 2009 13:50:46 +0000 (14:50 +0100)
commitfad7eca91130783e810142127f7cb71ac89f7ffb
tree80f4cba38ef375c1ba0dc44d93025967b72339a2
parent53613d63b294841cd0fd8995b76f4378b1c288f6
rfc2812: better handling of incomplete mode lines

Sometimes the bot may receive incomplete or malformed mode lines. This
can be seen for example by kicking repeatedly and at very short
intervals the bot from a channel with +l set to some numbers (at least
on freenode).

We (don't) handle these malformed modelines by skipping them rather than
crashing.
lib/rbot/rfc2812.rb