mirror of https://github.com/Mikaela/Limnoria.git
Fix bug #1068913, catch 435 (banned nick) responses.
This commit is contained in:
parent
2911a2c1fe
commit
c14ebfd129
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue