aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_globalload.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2019-02-07 12:35:44 +0000
committerGravatar Sadie Powell2019-02-07 12:35:44 +0000
commitf2fb1d98e111a602cfecd51861c5aa1c5983d264 (patch)
treefded300a75cc9f2a44d7955a6419ed5db3ae730d /src/modules/m_globalload.cpp
parentRemove the now unused fakederef class. (diff)
Prevent operators from unloading core modules.
Diffstat (limited to 'src/modules/m_globalload.cpp')
-rw-r--r--src/modules/m_globalload.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_globalload.cpp b/src/modules/m_globalload.cpp
index 3cd6a0d03..fa0b58a3b 100644
--- a/src/modules/m_globalload.cpp
+++ b/src/modules/m_globalload.cpp
@@ -76,8 +76,7 @@ class CommandGunloadmodule : public Command
CmdResult Handle(User* user, const Params& parameters) override
{
- if (!ServerInstance->Config->ConfValue("security")->getBool("allowcoreunload") &&
- InspIRCd::Match(parameters[0], "core_*.so", ascii_case_insensitive_map))
+ if (InspIRCd::Match(parameters[0], "core_*.so", ascii_case_insensitive_map))
{
user->WriteNumeric(ERR_CANTUNLOADMODULE, parameters[0], "You cannot unload core commands!");
return CMD_FAILURE;