mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-05-08 07:37:32 +02: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):
|
def __call__(self, irc, msg):
|
||||||
# Adding the aliases requires an Irc. So the first time we get called
|
# Adding the aliases requires an Irc. So the first time we get called
|
||||||
# with an Irc, we add our aliases and then delete ourselves :)
|
# 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:
|
try:
|
||||||
self.addAlias(irc, name, alias, locked)
|
self.addAlias(irc, name, alias, locked)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user