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_samode.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_samode.cpp') diff --git a/src/modules/m_samode.cpp b/src/modules/m_samode.cpp index 6dd793c0a..0af12e616 100644 --- a/src/modules/m_samode.cpp +++ b/src/modules/m_samode.cpp @@ -50,14 +50,14 @@ class CommandSamode : public Command if ((!target) || (target->registered != REG_ALL)) { user->WriteNumeric(Numerics::NoSuchNick(parameters[0])); - return CMD_FAILURE; + return CmdResult::FAILURE; } // Changing the modes of another user requires a special permission if ((target != user) && (!user->HasPrivPermission("users/samode-usermodes"))) { user->WriteNotice("*** You are not allowed to /SAMODE other users (the privilege users/samode-usermodes is needed to /SAMODE others)."); - return CMD_FAILURE; + return CmdResult::FAILURE; } } @@ -80,7 +80,7 @@ class CommandSamode : public Command LogUsage(user, stdalgo::string::join(parameters)); } - return CMD_SUCCESS; + return CmdResult::SUCCESS; } void LogUsage(const User* user, const std::string& text) -- cgit v1.3.1-10-gc9f91