mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Allowed for strings in ircmsgs.mode.
This commit is contained in:
parent
50226b4a64
commit
fb46330ee7
@ -603,6 +603,8 @@ def whois(nick, mask='', prefix=''):
|
||||
def mode(channel, args=None, prefix=''):
|
||||
if args is None:
|
||||
args = ()
|
||||
elif isinstance(args, basestring):
|
||||
args = (args,)
|
||||
else:
|
||||
args = tuple(args)
|
||||
return IrcMsg(prefix=prefix, command='MODE', args=(channel,)+args)
|
||||
|
Loading…
Reference in New Issue
Block a user