summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-04-03 08:28:39 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-04-03 08:28:39 +0200
commit5079554263a9a2c8c661c1c8728b4ce1a0bbd05a (patch)
tree461821b0c6fe9b8218f05f70ce464b53a54aae8b /lib
parent979dfca5faff9e9ea52588220a862bed19a8c731 (diff)
* less eager quit message reset
Only reset quit message when entering the main loop sanely.
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/ircbot.rb2
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?