Skip to content

Implement getter and setter for levelrequired. Used by m_modelevel.cpp. #329

Closed
wants to merge 1 commit into from

2 participants

@satmd
satmd commented Oct 10, 2012

This change is used by m_modelevel.cpp to raise or lower the required permissions to access modes.

Instead of implementing an additional Prefix=>Level method to the config parser, this time I will use

<define name="founder" value="40000">
<define name="protect" value="50000">

and reference those through the config itself.

Please note that inspircd still has m_chanprotect.cpp that uses

#define PROTECT_VALUE 40000
#define FOUNDER_VALUE 50000

@attilamolnar
inspircd member

I don't see the benefit of adding this to 2.0, however 2.2 will have similiar functionality. You can apply this patch to new versions in the 2.0 branch easily, if needed.

Also, there is a GetLevelRequired() already, see https://github.com/inspircd/inspircd/blob/insp20/include/mode.h#L293

@satmd satmd deleted the satmd:feature/levelrequired branch Jun 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.