Fix for uncaught KeyError.

This commit is contained in:
Jeremy Fincher 2004-04-26 19:33:27 +00:00
parent 27cd893dbd
commit 53ed45fac5

View File

@ -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>