aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_chgident.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_chgident.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_chgident.cpp')
-rw-r--r--src/modules/m_chgident.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_chgident.cpp b/src/modules/m_chgident.cpp
index 3650a2a72..d05892569 100644
--- a/src/modules/m_chgident.cpp
+++ b/src/modules/m_chgident.cpp
@@ -47,19 +47,19 @@ class CommandChgident : public Command
if ((!dest) || (dest->registered != REG_ALL))
{
user->WriteNumeric(Numerics::NoSuchNick(parameters[0]));
- return CMD_FAILURE;
+ return CmdResult::FAILURE;
}
if (parameters[1].length() > ServerInstance->Config->Limits.IdentMax)
{
user->WriteNotice("*** CHGIDENT: Ident is too long");
- return CMD_FAILURE;
+ return CmdResult::FAILURE;
}
if (!ServerInstance->IsIdent(parameters[1]))
{
user->WriteNotice("*** CHGIDENT: Invalid characters in ident");
- return CMD_FAILURE;
+ return CmdResult::FAILURE;
}
if (IS_LOCAL(dest))
@@ -70,7 +70,7 @@ class CommandChgident : public Command
ServerInstance->SNO.WriteGlobalSno('a', "%s used CHGIDENT to change %s's ident to '%s'", user->nick.c_str(), dest->nick.c_str(), dest->ident.c_str());
}
- return CMD_SUCCESS;
+ return CmdResult::SUCCESS;
}
RouteDescriptor GetRouting(User* user, const Params& parameters) override