aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/num.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_spanningtree/num.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_spanningtree/num.cpp')
-rw-r--r--src/modules/m_spanningtree/num.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree/num.cpp b/src/modules/m_spanningtree/num.cpp
index d85faa373..bbe23dca4 100644
--- a/src/modules/m_spanningtree/num.cpp
+++ b/src/modules/m_spanningtree/num.cpp
@@ -28,11 +28,11 @@ CmdResult CommandNum::HandleServer(TreeServer* server, CommandBase::Params& para
{
User* const target = ServerInstance->Users.FindUUID(params[1]);
if (!target)
- return CMD_FAILURE;
+ return CmdResult::FAILURE;
LocalUser* const localtarget = IS_LOCAL(target);
if (!localtarget)
- return CMD_SUCCESS;
+ return CmdResult::SUCCESS;
Numeric::Numeric numeric(ConvToNum<unsigned int>(params[2]));
// Passing NULL is ok, in that case the numeric source becomes this server
@@ -40,7 +40,7 @@ CmdResult CommandNum::HandleServer(TreeServer* server, CommandBase::Params& para
numeric.GetParams().insert(numeric.GetParams().end(), params.begin()+3, params.end());
localtarget->WriteNumeric(numeric);
- return CMD_SUCCESS;
+ return CmdResult::SUCCESS;
}
RouteDescriptor CommandNum::GetRouting(User* user, const Params& params)