Channel isn't necessary for NAMES.

This commit is contained in:
Jeremy Fincher 2004-08-25 22:56:48 +00:00
parent d1884179b3
commit b6b22f7c23

View File

@ -618,10 +618,13 @@ def whois(nick, mask='', prefix=''):
assert isNick(nick), repr(nick)
return IrcMsg(prefix=prefix, command='WHOIS', args=(nick, mask))
def names(channel, prefix=''):
def names(channel=None, prefix=''):
if conf.supybot.protocols.irc.strictRfc():
assert isChannel(channel)
if channel is not None:
return IrcMsg(prefix=prefix, command='NAMES', args=(channel,))
else:
return IrcMsg(prefix=prefix, command='NAMES')
def mode(channel, args=(), prefix=''):
if isinstance(args, basestring):