From 7cb27dabe695505d2eb7b942c4fbf518dda8e6b3 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 26 Oct 2020 23:40:24 +0000 Subject: Convert CmdResult to an 8-bit strongly typed enum. --- src/modules/m_globalload.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/modules/m_globalload.cpp') 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 -- cgit v1.3.1-10-gc9f91