mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Let's just make sure everythings a string.
This commit is contained in:
parent
370c30a4cf
commit
0c38398a8d
@ -604,13 +604,11 @@ def whois(nick, mask='', prefix=''):
|
||||
assert isNick(nick), repr(nick)
|
||||
return IrcMsg(prefix=prefix, command='WHOIS', args=(nick, mask))
|
||||
|
||||
def mode(channel, args=None, prefix=''):
|
||||
if args is None:
|
||||
args = ()
|
||||
elif isinstance(args, basestring):
|
||||
def mode(channel, args=(), prefix=''):
|
||||
if isinstance(args, basestring):
|
||||
args = (args,)
|
||||
else:
|
||||
args = tuple(args)
|
||||
args = tuple(map(str, args))
|
||||
return IrcMsg(prefix=prefix, command='MODE', args=(channel,)+args)
|
||||
|
||||
def invite(nick, channel, prefix=''):
|
||||
|
Loading…
Reference in New Issue
Block a user