]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
* less eager quit message reset
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 3 Apr 2011 06:28:39 +0000 (08:28 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 3 Apr 2011 06:28:39 +0000 (08:28 +0200)
Only reset quit message when entering the main loop sanely.

lib/rbot/ircbot.rb

index 695b7170e6bcd17740cb7a55923912651bf584cd..76541882f79d5f70e2a1cd5dcb78357c10974e40 100644 (file)
@@ -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?