mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
I thought *args would be a list. Turns out it's not.
This commit is contained in:
parent
cdd0de9a0c
commit
35bd48b9e8
@ -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)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user