summaryrefslogtreecommitdiff
path: root/lib/rbot/rfc2812.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-30 07:33:18 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-30 07:33:18 +0200
commita3cf647e81d6fe2a516f2c15fe4632d58e6feba3 (patch)
tree197ec81815ee3cde019c5f6dd33cae0ba6813895 /lib/rbot/rfc2812.rb
parent2fc67aef47db1eb38a4a4251f7550633cc387674 (diff)
An unparseable message from the server is a ServerError
Diffstat (limited to 'lib/rbot/rfc2812.rb')
-rw-r--r--lib/rbot/rfc2812.rb2
1 files changed, 1 insertions, 1 deletions
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