mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
ChannelLogger: Fix 'dictionary changed size during iteration'.
This commit is contained in:
parent
c01a956a8b
commit
69358681f7
@ -134,7 +134,7 @@ class ChannelLogger(callbacks.Plugin):
|
|||||||
|
|
||||||
def checkLogNames(self):
|
def checkLogNames(self):
|
||||||
for (irc, logs) in self.logs.items():
|
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):
|
if self.registryValue('rotateLogs', channel):
|
||||||
name = self.getLogName(channel)
|
name = self.getLogName(channel)
|
||||||
if name != os.path.basename(log.name):
|
if name != os.path.basename(log.name):
|
||||||
|
Loading…
Reference in New Issue
Block a user