chmode: Check mlock when a local oper changes cmode +L/+P.
This check was erroneously removed when fixing /mode #channel f when +f is mlocked. Mlock checks were restricted to the places requiring chanops (other than viewing +eI lists); cmode +L/+P do not require chanops, but still constitute a mode change that must be checked against mlock.
This commit is contained in:
parent
8db50c03e6
commit
aea6c4f9e6
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue