aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_globalload.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-10-26 23:40:24 +0000
committerGravatar Sadie Powell2020-10-27 00:59:11 +0000
commit7cb27dabe695505d2eb7b942c4fbf518dda8e6b3 (patch)
tree12f7541d3389efa9a084d2a4859d6ce4ede43b03 /src/modules/m_globalload.cpp
parentReplace the check for eventfd() with a C++17 header check. (diff)
Convert CmdResult to an 8-bit strongly typed enum.
Diffstat (limited to 'src/modules/m_globalload.cpp')
-rw-r--r--src/modules/m_globalload.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_globalload.cpp b/src/modules/m_globalload.cpp
index fc814635c..e105bc5d6 100644
--- a/src/modules/m_globalload.cpp
+++ b/src/modules/m_globalload.cpp
@@ -56,7 +56,7 @@ class CommandGloadmodule : public Command
else
ServerInstance->SNO.WriteToSnoMask('a', "MODULE '%s' GLOBAL LOAD BY '%s' (not loaded here)",parameters[0].c_str(), user->nick.c_str());
- return CMD_SUCCESS;
+ return CmdResult::SUCCESS;
}
RouteDescriptor GetRouting(User* user, const Params& parameters) override
@@ -81,7 +81,7 @@ class CommandGunloadmodule : public Command
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;
+ return CmdResult::FAILURE;
}
std::string servername = parameters.size() > 1 ? parameters[1] : "*";
@@ -107,7 +107,7 @@ class CommandGunloadmodule : public Command
else
ServerInstance->SNO.WriteToSnoMask('a', "MODULE '%s' GLOBAL UNLOAD BY '%s' (not unloaded here)",parameters[0].c_str(), user->nick.c_str());
- return CMD_SUCCESS;
+ return CmdResult::SUCCESS;
}
RouteDescriptor GetRouting(User* user, const Params& parameters) override
@@ -142,13 +142,13 @@ class CommandGreloadmodule : public Command
else
{
user->WriteNumeric(RPL_LOADEDMODULE, parameters[0], "Could not find module by that name");
- return CMD_FAILURE;
+ return CmdResult::FAILURE;
}
}
else
ServerInstance->SNO.WriteToSnoMask('a', "MODULE '%s' GLOBAL RELOAD BY '%s' (not reloaded here)",parameters[0].c_str(), user->nick.c_str());
- return CMD_SUCCESS;
+ return CmdResult::SUCCESS;
}
RouteDescriptor GetRouting(User* user, const Params& parameters) override