summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rbot/core/irclog.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rbot/core/irclog.rb b/lib/rbot/core/irclog.rb
index 0c024ddd..960dfa52 100644
--- a/lib/rbot/core/irclog.rb
+++ b/lib/rbot/core/irclog.rb
@@ -53,6 +53,10 @@ class IrcLogModule < CoreBotModule
#debug "[#{stamp}] <#{where}> #{message}"
end
+ def cleanup
+ @logs.keys.each { |w| logfile_close(w, 'rescan or shutdown') }
+ end
+
def sent(m)
case m
when NoticeMessage