summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-01-24 15:10:02 +0000
committerPeter Powell <petpow@saberuk.com>2019-01-24 15:10:02 +0000
commit4047a143fc1d16350db70c94b9ea77d79de05714 (patch)
tree854169605c3b134d5edc39067d0298f7d1e9c64b /src/mode.cpp
parentcbef0241a04eafe5250b75ebb3f7ef8c32ecb260 (diff)
Move the <disabled> tag out of the core to a new module.
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index 5793b4e66..459eb21c8 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -312,17 +312,6 @@ ModeAction ModeParser::TryMode(User* user, User* targetuser, Channel* chan, Mode
}
}
- if (IS_LOCAL(user) && !user->IsOper())
- {
- const std::bitset<64>& disabled = (type == MODETYPE_CHANNEL) ? ServerInstance->Config->DisabledCModes : ServerInstance->Config->DisabledUModes;
- if (disabled.test(modechar - 'A'))
- {
- user->WriteNumeric(ERR_NOPRIVILEGES, InspIRCd::Format("Permission Denied - %s mode %c has been locked by the administrator",
- type == MODETYPE_CHANNEL ? "channel" : "user", modechar));
- return MODEACTION_DENY;
- }
- }
-
if ((adding) && (IS_LOCAL(user)) && (mh->NeedsOper()) && (!user->HasModePermission(mh)))
{
/* It's an oper only mode, and they don't have access to it. */