mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Only use ircmsg.whois's mask argument if it's non-empty.
Closes: Sf#3121298 Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
This commit is contained in:
parent
4ddfae427f
commit
f6f9e654cb
@ -727,7 +727,10 @@ def whois(nick, mask='', prefix='', msg=None):
|
||||
assert isNick(nick), repr(nick)
|
||||
if msg and not prefix:
|
||||
prefix = msg.prefix
|
||||
return IrcMsg(prefix=prefix, command='WHOIS', args=(nick, mask), msg=msg)
|
||||
args = (nick,)
|
||||
if mask:
|
||||
args = (nick, mask)
|
||||
return IrcMsg(prefix=prefix, command='WHOIS', args=args, msg=msg)
|
||||
|
||||
def names(channel=None, prefix='', msg=None):
|
||||
if conf.supybot.protocols.irc.strictRfc():
|
||||
|
Loading…
Reference in New Issue
Block a user