inspircd / inspircd-contrib

Third-party InspIRCd module repository.
https://www.inspircd.org
66 stars 72 forks source link

Create module m_opban.cpp #139

Closed sebastiannielsen closed 6 years ago

sebastiannielsen commented 6 years ago

Thos module implements a new extban type o:, which prevents the banned person from being admin'ed, opped, half-opped or voiced. The extban o: can only be set or unset by someone having +q in the channel, and/or opers.

If the person setting the mode, and/or the target is an oper, the extban check is bypassed. (This to avoid any clash with any oper override modules being present).

Important note: If the OP in question have chanserv OP, be sure to set his access right so he ONLY have auto-OP, not the possibility to OP other's, as ulines also bypass the extban check.

This module is perfect if a channel owner wants to prevent a bad apple from becoming OP, either by social engiinering the present OPs, or aquiring it in some other way, while still retaining the ability for OPs to OP up other good persons.