]> jfr.im git - solanum.git/commit
Use the m_grant from ircd-seven
authorEd Kellett <redacted>
Sat, 27 Jul 2019 12:50:10 +0000 (13:50 +0100)
committerEd Kellett <redacted>
Sat, 14 Sep 2019 23:35:55 +0000 (00:35 +0100)
commitc1649fd04dc7e773dbd1d94a631794ec53851188
tree1cdfd971041ef45474707a6a9bb0aff38e047f18
parent8b7503c89abf94300c96597bfb5718b4fd655e89
Use the m_grant from ircd-seven

Charybdis' rewritten m_grant introduces at least one serious bug without
providing any apparent benefit. I think the best solution here is the
easiest one.

The bug in question is that an empty mode change is triggered after
seven's grant has done its work, and this is necessary in order to
give umodes granted by oper privileges a chance to update. The rewrite
removes this, generating a mode change only if it wants to change the
state of +o, which means the grant victim can keep privileged modes they
no longer have access to, or fail to gain new ones.
modules/m_grant.c