mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +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()
|
||||
locked = value.locked()
|
||||
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:
|
||||
self.addAlias(irc, alias, command, locked)
|
||||
except Exception as e:
|
||||
|
Loading…
Reference in New Issue
Block a user