inspircd / inspircd-contrib

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

Add module for restricting channel modes to specific prefix ranks #146

Closed sebastiannielsen closed 6 years ago

sebastiannielsen commented 6 years ago

This module allows restricting modes to specific prefix ranks.

For example:

<moderestrict mode="b" rank="30000"> = half-op cannot ban/unban
<moderestrict mode="v" rank="30000"> = half-op cannot voice/unvoice
<moderestrict mode="t" rank="50000"> = MLOCK functionality
<moderestrict mode="o" rank="40000"> = Only channel admin and above can op/deop
<moderestrict mode="w" rank="40000"> = Only channel admin and above can edit autoop list

Note that this module can NOT be used to lower the requirement for a channel mode already present in inspircd, only make it stricter.

In combination with: m_autoop, m_chanprotect, m_halfop, this can be used to create a services-less server that have roughtly the functionality of one with services, but uses hostnames/IP-adresses to identify users instead.