diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-08-28 12:37:28 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-08-28 12:37:28 +0000 |
commit | 696efbfb6ad3f40c313c17b22041e12c3196a7e9 (patch) | |
tree | 279e491ffc649a63a0f3deff06c36f3f4ab85bee /lib/rbot/ircsocket.rb | |
parent | bfb9506b75a1cf8118364226bcb8945114e3771c (diff) |
ircsocket: raise errors occurred while spooling so that bot is aware of them
Diffstat (limited to 'lib/rbot/ircsocket.rb')
-rw-r--r-- | lib/rbot/ircsocket.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rbot/ircsocket.rb b/lib/rbot/ircsocket.rb index dcc501a3..c1bc3611 100644 --- a/lib/rbot/ircsocket.rb +++ b/lib/rbot/ircsocket.rb @@ -462,6 +462,7 @@ module Irc end rescue Exception => e error "Spooling failed: #{e.pretty_inspect}" + raise e end end end @@ -499,6 +500,7 @@ module Irc @rawsock = nil if @ssl @sock = nil @burst = 0 + @sendq.clear end private |