From 9bd862f9dd7b42a043c1adc95d85b830b6f07f89 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 6 Nov 2009 22:52:41 +0100 Subject: [PATCH] irclog: don't kill logger thread on false can_log_on 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rbot/core/irclog.rb b/lib/rbot/core/irclog.rb index f60bcbfa..3b3134c2 100644 --- a/lib/rbot/core/irclog.rb +++ b/lib/rbot/core/irclog.rb @@ -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 -- 2.39.2