diff --git a/src/chmode.c b/src/chmode.c index 4ebb3724e..062cda588 100644 --- a/src/chmode.c +++ b/src/chmode.c @@ -698,6 +698,9 @@ chm_staff(struct Client *source_p, struct Channel *chptr, return; } + if(!allow_mode_change(source_p, chptr, CHFL_CHANOP, errors, c)) + return; + if(MyClient(source_p) && (++mode_limit_simple > MAXMODES_SIMPLE)) return;