aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_setident.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_setident.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_setident.cpp')
-rw-r--r--src/modules/m_setident.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_setident.cpp b/src/modules/m_setident.cpp
index f85ca1f0a..c749548c8 100644
--- a/src/modules/m_setident.cpp
+++ b/src/modules/m_setident.cpp
@@ -43,19 +43,19 @@ class CommandSetident : public Command
if (parameters[0].size() > ServerInstance->Config->Limits.IdentMax)
{
user->WriteNotice("*** SETIDENT: Ident is too long");
- return CMD_FAILURE;
+ return CmdResult::FAILURE;
}
if (!ServerInstance->IsIdent(parameters[0]))
{
user->WriteNotice("*** SETIDENT: Invalid characters in ident");
- return CMD_FAILURE;
+ return CmdResult::FAILURE;
}
user->ChangeIdent(parameters[0]);
ServerInstance->SNO.WriteGlobalSno('a', "%s used SETIDENT to change their ident to '%s'", user->nick.c_str(), user->ident.c_str());
- return CMD_SUCCESS;
+ return CmdResult::SUCCESS;
}
};