mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Updated to handle 438.
This commit is contained in:
parent
c9867b28c3
commit
ecae9af5a6
11
src/Admin.py
11
src/Admin.py
@ -95,7 +95,7 @@ class Admin(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
schedule.addEvent(rejoin, t)
|
schedule.addEvent(rejoin, t)
|
||||||
self.log.info('Scheduling a rejoin to %s at %s; '
|
self.log.info('Scheduling a rejoin to %s at %s; '
|
||||||
'Channel temporarily unavailable.', target, t)
|
'Channel temporarily unavailable.', target, t)
|
||||||
|
|
||||||
def do471(self, irc, msg):
|
def do471(self, irc, msg):
|
||||||
try:
|
try:
|
||||||
channel = msg.args[1]
|
channel = msg.args[1]
|
||||||
@ -212,6 +212,15 @@ 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 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):
|
def doNick(self, irc, msg):
|
||||||
if msg.nick == irc.nick or msg.args[0] == irc.nick:
|
if msg.nick == irc.nick or msg.args[0] == irc.nick:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user