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_sethost.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/m_sethost.cpp') diff --git a/src/modules/m_sethost.cpp b/src/modules/m_sethost.cpp index 6f4e8a8dc..ef7a8c315 100644 --- a/src/modules/m_sethost.cpp +++ b/src/modules/m_sethost.cpp @@ -45,7 +45,7 @@ class CommandSethost : public Command if (parameters[0].length() > ServerInstance->Config->Limits.MaxHost) { user->WriteNotice("*** SETHOST: Host too long"); - return CMD_FAILURE; + return CmdResult::FAILURE; } for (std::string::const_iterator x = parameters[0].begin(); x != parameters[0].end(); x++) @@ -53,17 +53,17 @@ class CommandSethost : public Command if (!hostmap.test(static_cast(*x))) { user->WriteNotice("*** SETHOST: Invalid characters in hostname"); - return CMD_FAILURE; + return CmdResult::FAILURE; } } if (user->ChangeDisplayedHost(parameters[0])) { ServerInstance->SNO.WriteGlobalSno('a', user->nick+" used SETHOST to change their displayed host to "+user->GetDisplayedHost()); - return CMD_SUCCESS; + return CmdResult::SUCCESS; } - return CMD_FAILURE; + return CmdResult::FAILURE; } }; -- cgit v1.3.1-10-gc9f91