From e844032d80cac393c4ddf720bf359982fdc7c93a Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 23 Jun 2008 18:00:42 +0200 Subject: 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. --- lib/rbot/rfc2812.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3