diff --git a/src/chmode.c b/src/chmode.c index d4d19619..4cf3cb5c 100644 --- a/src/chmode.c +++ b/src/chmode.c @@ -1163,7 +1163,8 @@ chm_throttle(struct Client *source_p, struct Channel *chptr, if((dir == MODE_ADD) && parc > *parn) { - sscanf(parv[(*parn)], "%d:%d", &joins, ×lice); + if (sscanf(parv[(*parn)], "%d:%d", &joins, ×lice) < 2) + return; if(joins <= 0 || timeslice <= 0) return;