summaryrefslogtreecommitdiff
path: root/src/irc/dcc
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/dcc')
-rw-r--r--src/irc/dcc/dcc-resume.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/irc/dcc/dcc-resume.c b/src/irc/dcc/dcc-resume.c
index 3f4a6ee0..ae070ac5 100644
--- a/src/irc/dcc/dcc-resume.c
+++ b/src/irc/dcc/dcc-resume.c
@@ -89,6 +89,9 @@ static int dcc_ctcp_resume_parse(int type, const char *data, const char *nick,
params = g_strsplit(data, " ", -1);
paramcount = strarray_length(params);
+ if (paramcount < 3)
+ return 0;
+
fileparams = get_file_params_count_resume(params, paramcount);
if (paramcount >= fileparams + 2) {