I thought *args would be a list. Turns out it's not.

This commit is contained in:
Jeremy Fincher 2004-07-27 23:33:22 +00:00
parent cdd0de9a0c
commit 35bd48b9e8

View File

@ -487,7 +487,7 @@ def dcc(recipient, kind, *args, **kwargs):
assert ircutils.isNick(recipient), 'Can\'t DCC a channel.'
kind = kind.upper()
assert kind in ('SEND', 'CHAT', 'RESUME', 'ACCEPT'), 'Invalid DCC command.'
args.insert(0, kind)
args = (kind,) + args
return IrcMsg(prefix=kwargs.get('prefix', ''), command='PRIVMSG',
args=(recipient, ' '.join(args)))