mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Use items() intead of iteritems() because we're deleting from the dictionary.
This commit is contained in:
parent
8cbcb2e225
commit
e23bf4167b
@ -165,7 +165,7 @@ class Alias(callbacks.Privmsg):
|
||||
def __call__(self, irc, msg):
|
||||
# Adding the aliases requires an Irc. So the first time we get called
|
||||
# with an Irc, we add our aliases and then delete ourselves :)
|
||||
for (name, (alias, locked)) in self.aliases.iteritems():
|
||||
for (name, (alias, locked)) in self.aliases.items():
|
||||
try:
|
||||
self.addAlias(irc, name, alias, locked)
|
||||
except Exception, e:
|
||||
|
Loading…
Reference in New Issue
Block a user