Fix bug #1068913, catch 435 (banned nick) responses.

This commit is contained in:
James Vega 2004-11-23 16:48:22 +00:00
parent 2911a2c1fe
commit c14ebfd129

View File

@ -197,6 +197,13 @@ class Admin(privmsgs.CapabilityCheckingPrivmsg):
else: else:
self.log.debug('Got 433 without Admin.nick being called.') self.log.debug('Got 433 without Admin.nick being called.')
def do435(self, irc, msg):
irc = self.pendingNickChanges.get(irc, None)
if irc is not None:
irc.error('That nick is currently banned.')
else:
self.log.debug('Got 435 without Admin.nick being called.')
def do438(self, irc, msg): def do438(self, irc, msg):
"""Can't change nick while in +m channel. Could just be Freenode.""" """Can't change nick while in +m channel. Could just be Freenode."""
irc = self.pendingNickChanges.get(irc, None) irc = self.pendingNickChanges.get(irc, None)