From 90552e214c5fb88d358605b7d2a68bb620d2a55a Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Tue, 5 Jan 2016 19:02:44 -0600 Subject: [PATCH] chmode: properly validate chm_throttle mode parameters --- src/chmode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chmode.c b/src/chmode.c index 20ad88c7f..d4d19619f 100644 --- a/src/chmode.c +++ b/src/chmode.c @@ -1165,7 +1165,7 @@ chm_throttle(struct Client *source_p, struct Channel *chptr, { sscanf(parv[(*parn)], "%d:%d", &joins, ×lice); - if(!joins || !timeslice) + if(joins <= 0 || timeslice <= 0) return; mode_changes[mode_count].letter = c;