From: Giuseppe Bilotta Date: Tue, 30 Aug 2011 05:33:18 +0000 (+0200) Subject: An unparseable message from the server is a ServerError X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=a3cf647e81d6fe2a516f2c15fe4632d58e6feba3;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git An unparseable message from the server is a ServerError --- 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