Updated to handle 438.

This commit is contained in:
Jeremy Fincher 2004-07-17 06:03:24 +00:00
parent c9867b28c3
commit ecae9af5a6

View File

@ -212,6 +212,15 @@ class Admin(privmsgs.CapabilityCheckingPrivmsg):
else:
self.log.debug('Got 433 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)
if irc is not None:
channel = msg.args[-1].strip().split()[-1][1:-1]
irc.error('I can\'t change nicks, %s is +m and I\'m -v.' % channel)
else:
self.log.debug('Got 438 without Admin.nick being called.')
def doNick(self, irc, msg):
if msg.nick == irc.nick or msg.args[0] == irc.nick:
try: