mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Only write the file if we're monitoring words.
This commit is contained in:
parent
532ac414a0
commit
1b10c0ad26
@ -68,6 +68,10 @@ class WordStatsDB(plugins.ChannelUserDB):
|
||||
self.channelWords = ircutils.IrcDict()
|
||||
plugins.ChannelUserDB.__init__(self, *args, **kwargs)
|
||||
|
||||
def close(self):
|
||||
if self.channelWords:
|
||||
plugins.ChannelUserDB.close(self)
|
||||
|
||||
def serialize(self, v):
|
||||
L = []
|
||||
for (word, count) in v.iteritems():
|
||||
|
Loading…
Reference in New Issue
Block a user