ChannelLogger: Fix 'dictionary changed size during iteration'.

This commit is contained in:
Valentin Lorentz 2015-08-31 08:40:30 +00:00
parent c01a956a8b
commit 69358681f7
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ class ChannelLogger(callbacks.Plugin):
def checkLogNames(self):
for (irc, logs) in self.logs.items():
for (channel, log) in logs.items():
for (channel, log) in list(logs.items()):
if self.registryValue('rotateLogs', channel):
name = self.getLogName(channel)
if name != os.path.basename(log.name):