mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
Alias: prevent "RuntimeError: dictionary changed size during iteration" for invalid aliases
This commit is contained in:
parent
f5c66afe4f
commit
ff4040f479
@ -272,7 +272,7 @@ class Alias(callbacks.Plugin):
|
|||||||
command = value()
|
command = value()
|
||||||
locked = value.locked()
|
locked = value.locked()
|
||||||
self.aliases[unescapeAlias(name)] = [command, locked, None]
|
self.aliases[unescapeAlias(name)] = [command, locked, None]
|
||||||
for (alias, (command, locked, _)) in self.aliases.items():
|
for (alias, (command, locked, _)) in self.aliases.copy().items():
|
||||||
try:
|
try:
|
||||||
self.addAlias(irc, alias, command, locked)
|
self.addAlias(irc, alias, command, locked)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user