Allowed for strings in ircmsgs.mode.

This commit is contained in:
Jeremy Fincher 2004-04-27 10:50:53 +00:00
parent 50226b4a64
commit fb46330ee7

View File

@ -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)