mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-22 10:42:55 +01:00
Channel isn't necessary for NAMES.
This commit is contained in:
parent
d1884179b3
commit
b6b22f7c23
@ -618,10 +618,13 @@ def whois(nick, mask='', prefix=''):
|
|||||||
assert isNick(nick), repr(nick)
|
assert isNick(nick), repr(nick)
|
||||||
return IrcMsg(prefix=prefix, command='WHOIS', args=(nick, mask))
|
return IrcMsg(prefix=prefix, command='WHOIS', args=(nick, mask))
|
||||||
|
|
||||||
def names(channel, prefix=''):
|
def names(channel=None, prefix=''):
|
||||||
if conf.supybot.protocols.irc.strictRfc():
|
if conf.supybot.protocols.irc.strictRfc():
|
||||||
assert isChannel(channel)
|
assert isChannel(channel)
|
||||||
return IrcMsg(prefix=prefix, command='NAMES', args=(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=''):
|
def mode(channel, args=(), prefix=''):
|
||||||
if isinstance(args, basestring):
|
if isinstance(args, basestring):
|
||||||
|
Loading…
Reference in New Issue
Block a user