From 0ad9f7d566fb2683f08a06094dac5beab6253ff8 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 7 Jan 2009 02:02:56 +0100 Subject: rfc2812: handle server ERROR --- lib/rbot/rfc2812.rb | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit v1.2.3