Added the capability to specify a mask for the whois helper.

This commit is contained in:
Jeremy Fincher 2003-08-21 16:53:19 +00:00
parent af9d8b6c28
commit 710dcd71c6

View File

@ -510,10 +510,10 @@ def who(hostmaskOrChannel, prefix=''):
hostmaskOrChannel
return IrcMsg(prefix=prefix, command='WHO', args=(hostmaskOrChannel,))
def whois(nick, prefix=''):
def whois(nick, mask='', prefix=''):
"""Returns a WHOIS for nick."""
assert isNick(nick), nick
return IrcMsg(prefix=prefix, command='WHOIS', args=(nick,))
return IrcMsg(prefix=prefix, command='WHOIS', args=(nick, mask))
def invite(channel, nick, prefix=''):
"""Returns an INVITE for nick."""