mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05: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
@ -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))
|
if (!cmd_get_params(data, &free_arg, 3, &type, &nick, &arg))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (*nick == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS);
|
||||||
|
|
||||||
g_strup(type);
|
g_strup(type);
|
||||||
itype = dcc_str2type(type);
|
itype = dcc_str2type(type);
|
||||||
if (itype == 0)
|
if (itype == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user