mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 02:49:27 +01:00
Ctcp: Fix 'RuntimeError: dictionary changed size during iteration'
This commit is contained in:
parent
0780624450
commit
4db32e24a5
@ -64,7 +64,7 @@ class Ctcp(callbacks.PluginRegexp):
|
||||
def callCommand(self, command, irc, msg, *args, **kwargs):
|
||||
if conf.supybot.abuse.flood.ctcp():
|
||||
now = time.time()
|
||||
for (ignore, expiration) in self.ignores.items():
|
||||
for (ignore, expiration) in list(self.ignores.items()):
|
||||
if expiration < now:
|
||||
del self.ignores[ignore]
|
||||
elif ircutils.hostmaskPatternEqual(ignore, msg.prefix):
|
||||
|
Loading…
Reference in New Issue
Block a user