]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
rfc2812: handle server ERROR
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 7 Jan 2009 01:02:56 +0000 (02:02 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 7 Jan 2009 01:02:56 +0000 (02:02 +0100)
lib/rbot/rfc2812.rb

index 800c012094b944c50eacb9204a58858e2437df4b..21cd9ff7d4782edb52449f2d09e34db7fb1259d4 100644 (file)
@@ -1474,6 +1474,9 @@ module Irc
       when :MODE
         parse_mode(serverstring, argv, data)
         handle(:mode, data)
+      when :ERROR
+        data[:message] = argv[1]
+        handle(:error, data)
       else
         warning "Unknown message #{serverstring.inspect}"
         handle(:unknown, data)