From 7cb27dabe695505d2eb7b942c4fbf518dda8e6b3 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 26 Oct 2020 23:40:24 +0000 Subject: Convert CmdResult to an 8-bit strongly typed enum. --- src/modules/m_clearchan.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/m_clearchan.cpp') 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; } }; -- cgit v1.3.1-10-gc9f91