diff options
author | Timo Sirainen <cras@irssi.org> | 2000-11-17 02:45:04 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-11-17 02:45:04 +0000 |
commit | 54815d198bd490194710f36b1a87a05111e38a23 (patch) | |
tree | bf4011957f71e5db776eae50d0ad20ee69e6139c /src/irc/dcc/dcc.c | |
parent | 29a64a8924810176c6133690819f458c4cf3acd7 (diff) | |
download | irssi-54815d198bd490194710f36b1a87a05111e38a23.zip |
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
Diffstat (limited to 'src/irc/dcc/dcc.c')
-rw-r--r-- | src/irc/dcc/dcc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/irc/dcc/dcc.c b/src/irc/dcc/dcc.c index 67951ec6..e8143442 100644 --- a/src/irc/dcc/dcc.c +++ b/src/irc/dcc/dcc.c @@ -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) |