mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 01:19:26 +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)
|
assert isNick(nick), repr(nick)
|
||||||
return IrcMsg(prefix=prefix, command='WHOIS', args=(nick, mask))
|
return IrcMsg(prefix=prefix, command='WHOIS', args=(nick, mask))
|
||||||
|
|
||||||
def mode(channel, args=None, prefix=''):
|
def mode(channel, args=(), prefix=''):
|
||||||
if args is None:
|
if isinstance(args, basestring):
|
||||||
args = ()
|
|
||||||
elif isinstance(args, basestring):
|
|
||||||
args = (args,)
|
args = (args,)
|
||||||
else:
|
else:
|
||||||
args = tuple(args)
|
args = tuple(map(str, args))
|
||||||
return IrcMsg(prefix=prefix, command='MODE', args=(channel,)+args)
|
return IrcMsg(prefix=prefix, command='MODE', args=(channel,)+args)
|
||||||
|
|
||||||
def invite(nick, channel, prefix=''):
|
def invite(nick, channel, prefix=''):
|
||||||
|
Loading…
Reference in New Issue
Block a user