diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-04-03 08:28:39 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-04-03 08:28:39 +0200 |
commit | 5079554263a9a2c8c661c1c8728b4ce1a0bbd05a (patch) | |
tree | 461821b0c6fe9b8218f05f70ce464b53a54aae8b /lib/rbot/ircbot.rb | |
parent | 979dfca5faff9e9ea52588220a862bed19a8c731 (diff) |
* less eager quit message reset
Only reset quit message when entering the main loop sanely.
Diffstat (limited to 'lib/rbot/ircbot.rb')
-rw-r--r-- | lib/rbot/ircbot.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index 695b7170..76541882 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -984,8 +984,8 @@ class Bot def mainloop while true too_fast = false + quit_msg = nil begin - quit_msg = nil reconnect(quit_msg, too_fast) quit if $interrupted > 0 while @socket.connected? |