From a3cf647e81d6fe2a516f2c15fe4632d58e6feba3 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 30 Aug 2011 07:33:18 +0200 Subject: An unparseable message from the server is a ServerError --- lib/rbot/rfc2812.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/rbot/rfc2812.rb b/lib/rbot/rfc2812.rb index cd32135a..335da2ea 100644 --- a/lib/rbot/rfc2812.rb +++ b/lib/rbot/rfc2812.rb @@ -1033,7 +1033,7 @@ module Irc data[:serverstring] = serverstring unless serverstring.chomp =~ /^(:(\S+)\s)?(\S+)(\s(.*))?$/ - raise "Unparseable Server Message!!!: #{serverstring.inspect}" + raise ServerError, "Unparseable Server Message!!!: #{serverstring.inspect}" end prefix, command, params = $2, $3, $5 -- cgit v1.2.3