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:
Jilles Tjoelker 2014-08-18 00:26:38 +02:00
parent 8db50c03e6
commit aea6c4f9e6

View file

@ -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;