]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
An unparseable message from the server is a ServerError
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 30 Aug 2011 05:33:18 +0000 (07:33 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 30 Aug 2011 05:33:18 +0000 (07:33 +0200)
lib/rbot/rfc2812.rb

index cd32135af933f51e1203c410a246a9674fd54e18..335da2ea5820f0a24917c3ba72f96bcf16ddfdf2 100644 (file)
@@ -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