mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 08:02:13 +02:00
Check that enough parameters are given to /DCC CLOSE
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@843 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
29a64a8924
commit
54815d198b
1 changed files with 2 additions and 0 deletions
|
|
@ -426,6 +426,8 @@ static void cmd_dcc_close(char *data, IRC_SERVER_REC *server)
|
|||
if (!cmd_get_params(data, &free_arg, 3, &type, &nick, &arg))
|
||||
return;
|
||||
|
||||
if (*nick == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS);
|
||||
|
||||
g_strup(type);
|
||||
itype = dcc_str2type(type);
|
||||
if (itype == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue