mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-18 14:40:51 +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()
|
self.channelWords = ircutils.IrcDict()
|
||||||
plugins.ChannelUserDB.__init__(self, *args, **kwargs)
|
plugins.ChannelUserDB.__init__(self, *args, **kwargs)
|
||||||
|
|
||||||
|
def close(self):
|
||||||
|
if self.channelWords:
|
||||||
|
plugins.ChannelUserDB.close(self)
|
||||||
|
|
||||||
def serialize(self, v):
|
def serialize(self, v):
|
||||||
L = []
|
L = []
|
||||||
for (word, count) in v.iteritems():
|
for (word, count) in v.iteritems():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user