diff --git a/src/ircmsgs.py b/src/ircmsgs.py index c4d300962..5ab67538b 100644 --- a/src/ircmsgs.py +++ b/src/ircmsgs.py @@ -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)))