]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
irclog: don't kill logger thread on false can_log_on
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 6 Nov 2009 21:52:41 +0000 (22:52 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 6 Nov 2009 21:53:46 +0000 (22:53 +0100)
Change a return to a next. Leftover from the refactoring of the logger
into its own thread. Thanks to gelraen for spotting this.

lib/rbot/core/irclog.rb

index f60bcbfaddb1805ea9a270724912c0d1ed69dd00..3b3134c205ebe67ce7e0022a839fc4489cd4332b 100644 (file)
@@ -263,7 +263,7 @@ class IrcLogModule < CoreBotModule
       else
         where_str = where.downcase.gsub(/[:!?$*()\/\\<>|"']/, "_")
       end
-      return unless can_log_on(where_str)
+      next unless can_log_on(where_str)
 
       # close the previous logfile if we're rotating
       if @logs.has_key? where_str