summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-01-07 02:02:56 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-01-07 02:02:56 +0100
commit0ad9f7d566fb2683f08a06094dac5beab6253ff8 (patch)
tree6dd56422500bacd40f6abe40af64f59f6d1bcc00 /lib
parent5e2f8353cd97462a311970b17a3db79d238c608c (diff)
rfc2812: handle server ERROR
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/rfc2812.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rbot/rfc2812.rb b/lib/rbot/rfc2812.rb
index 800c0120..21cd9ff7 100644
--- a/lib/rbot/rfc2812.rb
+++ b/lib/rbot/rfc2812.rb
@@ -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)