1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04: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:
Timo Sirainen 2000-11-17 02:45:04 +00:00 committed by cras
parent 29a64a8924
commit 54815d198b

View File

@ -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)