mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
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:
|
||||
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):
|
||||
"""Can't change nick while in +m channel. Could just be Freenode."""
|
||||
irc = self.pendingNickChanges.get(irc, None)
|
||||
|
Loading…
Reference in New Issue
Block a user