aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_clearchan.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_clearchan.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_clearchan.cpp')
-rw-r--r--src/modules/m_clearchan.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_clearchan.cpp b/src/modules/m_clearchan.cpp
index 6fad233b8..5562b3ee7 100644
--- a/src/modules/m_clearchan.cpp
+++ b/src/modules/m_clearchan.cpp
@@ -43,7 +43,7 @@ class CommandClearChan : public Command
if (!chan)
{
user->WriteNotice("The channel " + parameters[0] + " does not exist.");
- return CMD_FAILURE;
+ return CmdResult::FAILURE;
}
// See what method the oper wants to use, default to KILL
@@ -61,12 +61,12 @@ class CommandClearChan : public Command
if ((method != "Z") && (method != "G"))
{
user->WriteNotice("Invalid method for clearing " + chan->name);
- return CMD_FAILURE;
+ return CmdResult::FAILURE;
}
xlf = ServerInstance->XLines->GetFactory(method);
if (!xlf)
- return CMD_FAILURE;
+ return CmdResult::FAILURE;
}
const std::string reason = parameters.size() > 2 ? parameters.back() : "Clearing " + chan->name;
@@ -138,7 +138,7 @@ class CommandClearChan : public Command
if (xlf)
ServerInstance->XLines->ApplyLines();
- return CMD_SUCCESS;
+ return CmdResult::SUCCESS;
}
};