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_shun.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/m_shun.cpp') 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 -- cgit v1.3.1-10-gc9f91