From 7f938d96c15a53fa42fe8e55617ff0a2c25dd00e Mon Sep 17 00:00:00 2001 From: dmitry kim Date: Tue, 15 Apr 2008 05:25:45 +0400 Subject: + core/irclog: stamp/close logs on rescan/restart --- lib/rbot/core/irclog.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') 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 -- cgit v1.2.3