mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-28 21:52:37 +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>
(cherry picked from commit f6f9e654cb
)
Signed-off-by: Daniel Folkinshteyn <nanotube@users.sourceforge.net>
This commit is contained in:
parent
be9415912c
commit
e2f27512bc
@ -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