diff options
author | dmitry kim <jason@nichego.net> | 2008-04-15 05:25:45 +0400 |
---|---|---|
committer | dmitry kim <jason@nichego.net> | 2008-04-15 05:25:45 +0400 |
commit | 7f938d96c15a53fa42fe8e55617ff0a2c25dd00e (patch) | |
tree | d6461805491170d03fb76ae142c2d45390bd0bdf /lib | |
parent | 86e2386cce5df6bf45c2069140e752dc810cc011 (diff) |
+ core/irclog: stamp/close logs on rescan/restart
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbot/core/irclog.rb | 4 |
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 |