diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-11-06 22:52:41 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-11-06 22:53:46 +0100 |
commit | 9bd862f9dd7b42a043c1adc95d85b830b6f07f89 (patch) | |
tree | 85c8f960ad5639f319ee508cc64a6f08b06a84f1 /lib/rbot | |
parent | b19163aa6cc90a1f5a1d8c1d1d4ae4134c2171a0 (diff) |
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.
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/core/irclog.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |