diff options
| author | 2020-10-26 23:40:24 +0000 | |
|---|---|---|
| committer | 2020-10-27 00:59:11 +0000 | |
| commit | 7cb27dabe695505d2eb7b942c4fbf518dda8e6b3 (patch) | |
| tree | 12f7541d3389efa9a084d2a4859d6ce4ede43b03 /src/modules/m_samode.cpp | |
| parent | Replace 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_samode.cpp')
| -rw-r--r-- | src/modules/m_samode.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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) |
