chmode: properly validate chm_throttle mode parameters
This commit is contained in:
parent
5810d36e0a
commit
90552e214c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue