mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
Don't reveal the channel unless the nick command is given in it.
This commit is contained in:
parent
ecae9af5a6
commit
7bf740db35
@ -217,7 +217,13 @@ class Admin(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
irc = self.pendingNickChanges.get(irc, None)
|
irc = self.pendingNickChanges.get(irc, None)
|
||||||
if irc is not None:
|
if irc is not None:
|
||||||
channel = msg.args[-1].strip().split()[-1][1:-1]
|
channel = msg.args[-1].strip().split()[-1][1:-1]
|
||||||
irc.error('I can\'t change nicks, %s is +m and I\'m -v.' % channel)
|
assert hasattr(irc, 'msg')
|
||||||
|
if ircutils.strEqual(irc.msg.args[0], channel):
|
||||||
|
irc.error('I can\'t change nicks, '
|
||||||
|
'%s is +m and I\'m -v.' % channel)
|
||||||
|
else:
|
||||||
|
irc.error('I can\'t change nicks, '
|
||||||
|
'a channel is +m and I\'m -v in it.')
|
||||||
else:
|
else:
|
||||||
self.log.debug('Got 438 without Admin.nick being called.')
|
self.log.debug('Got 438 without Admin.nick being called.')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user