From 5079554263a9a2c8c661c1c8728b4ce1a0bbd05a Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 3 Apr 2011 08:28:39 +0200 Subject: [PATCH] * less eager quit message reset Only reset quit message when entering the main loop sanely. --- lib/rbot/ircbot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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? -- 2.39.2