aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_shun.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_shun.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_shun.cpp')
-rw-r--r--src/modules/m_shun.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp
index 23aea494a..dce7cf6ea 100644
--- a/src/modules/m_shun.cpp
+++ b/src/modules/m_shun.cpp
@@ -92,7 +92,7 @@ class CommandShun : public Command
else
{
user->WriteNotice("*** Shun " + parameters[0] + " not found on the list.");
- return CMD_FAILURE;
+ return CmdResult::FAILURE;
}
}
else
@@ -105,7 +105,7 @@ class CommandShun : public Command
if (!InspIRCd::Duration(parameters[1], duration))
{
user->WriteNotice("*** Invalid duration for SHUN.");
- return CMD_FAILURE;
+ return CmdResult::FAILURE;
}
expr = parameters[2];
}
@@ -134,10 +134,10 @@ class CommandShun : public Command
{
delete r;
user->WriteNotice("*** Shun for " + target + " already exists.");
- return CMD_FAILURE;
+ return CmdResult::FAILURE;
}
}
- return CMD_SUCCESS;
+ return CmdResult::SUCCESS;
}
RouteDescriptor GetRouting(User* user, const Params& parameters) override