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_chghost.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/m_chghost.cpp') 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(*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 -- cgit v1.3.1-10-gc9f91