diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-06-23 18:00:42 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-06-23 18:00:42 +0200 |
commit | e844032d80cac393c4ddf720bf359982fdc7c93a (patch) | |
tree | 6e0e1eb50192c2bb9b14dbe2d5d1256c290268a5 /lib/rbot | |
parent | 98e6433adf5e5ea2577130ef7ee49cd5ed548857 (diff) |
rfc2812.rb: skip unknown channel modes altogether
Some servers set non-advertized channel modes. Since we
cannot handle them (as we don't know what type they are)
and setting them crashes the bot, we remove them.
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/rfc2812.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rbot/rfc2812.rb b/lib/rbot/rfc2812.rb index ce71026a..0100fc3c 100644 --- a/lib/rbot/rfc2812.rb +++ b/lib/rbot/rfc2812.rb @@ -1509,7 +1509,8 @@ module Irc when *@server.supports[:prefix][:modes] who_wants_params << data[:modes].length - 1 else - warning "Unknown mode #{m} in #{serverstring.inspect}" + warning "Ignoring unknown mode #{m} in #{serverstring.inspect}" + data[:modes].pop end end end |