diff options
| author | 2020-10-26 23:40:24 +0000 | |
|---|---|---|
| committer | 2020-10-27 00:59:11 +0000 | |
| commit | 7cb27dabe695505d2eb7b942c4fbf518dda8e6b3 (patch) | |
| tree | 12f7541d3389efa9a084d2a4859d6ce4ede43b03 /src/modules/m_chghost.cpp | |
| parent | Replace 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_chghost.cpp')
| -rw-r--r-- | src/modules/m_chghost.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_chghost.cpp b/src/modules/m_chghost.cpp index 51f3b76a4..d7333cad0 100644 --- a/src/modules/m_chghost.cpp +++ b/src/modules/m_chghost.cpp @@ -46,7 +46,7 @@ class CommandChghost : public Command if (parameters[1].length() > ServerInstance->Config->Limits.MaxHost) { user->WriteNotice("*** CHGHOST: Host too long"); - return CMD_FAILURE; + return CmdResult::FAILURE; } for (std::string::const_iterator x = parameters[1].begin(); x != parameters[1].end(); x++) @@ -54,7 +54,7 @@ class CommandChghost : public Command if (!hostmap.test(static_cast<unsigned char>(*x))) { user->WriteNotice("*** CHGHOST: Invalid characters in hostname"); - return CMD_FAILURE; + return CmdResult::FAILURE; } } @@ -64,7 +64,7 @@ class CommandChghost : public Command if ((!dest) || ((dest->registered != REG_ALL) && (!user->server->IsULine()))) { user->WriteNumeric(Numerics::NoSuchNick(parameters[0])); - return CMD_FAILURE; + return CmdResult::FAILURE; } if (IS_LOCAL(dest)) @@ -76,7 +76,7 @@ class CommandChghost : public Command } } - return CMD_SUCCESS; + return CmdResult::SUCCESS; } RouteDescriptor GetRouting(User* user, const Params& parameters) override |
