mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Fix for uncaught KeyError.
This commit is contained in:
parent
27cd893dbd
commit
53ed45fac5
@ -196,7 +196,10 @@ class Admin(privmsgs.CapabilityCheckingPrivmsg):
|
||||
|
||||
def doNick(self, irc, msg):
|
||||
if msg.nick == irc.nick or msg.args[0] == irc.nick:
|
||||
del self.pendingNickChanges[irc]
|
||||
try:
|
||||
del self.pendingNickChanges[irc]
|
||||
except KeyError:
|
||||
self.log.debug('Got NICK without Admin.nick being called.')
|
||||
|
||||
def nick(self, irc, msg, args):
|
||||
"""<nick>
|
||||
|
Loading…
Reference in New Issue
Block a user