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_saquit.cpp | |
| parent | Replace the check for eventfd() with a C++17 header check. (diff) | |
| download | inspircd++-7cb27dabe695505d2eb7b942c4fbf518dda8e6b3.tar.gz inspircd++-7cb27dabe695505d2eb7b942c4fbf518dda8e6b3.tar.bz2 inspircd++-7cb27dabe695505d2eb7b942c4fbf518dda8e6b3.zip | |
Convert CmdResult to an 8-bit strongly typed enum.
Diffstat (limited to 'src/modules/m_saquit.cpp')
| -rw-r--r-- | src/modules/m_saquit.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_saquit.cpp b/src/modules/m_saquit.cpp index ec4a0ed5c..26f6639dd 100644 --- a/src/modules/m_saquit.cpp +++ b/src/modules/m_saquit.cpp @@ -47,22 +47,22 @@ class CommandSaquit : public Command if (dest->server->IsULine()) { user->WriteNumeric(ERR_NOPRIVILEGES, "Cannot use an SA command on a U-lined client"); - return CMD_FAILURE; + return CmdResult::FAILURE; } // Pass the command on, so the client's server can quit it properly. if (!IS_LOCAL(dest)) - return CMD_SUCCESS; + return CmdResult::SUCCESS; ServerInstance->SNO.WriteGlobalSno('a', user->nick+" used SAQUIT to make "+dest->nick+" quit with a reason of "+parameters[1]); ServerInstance->Users.QuitUser(dest, parameters[1]); - return CMD_SUCCESS; + return CmdResult::SUCCESS; } else { user->WriteNotice("*** Invalid nickname: '" + parameters[0] + "'"); - return CMD_FAILURE; + return CmdResult::FAILURE; } } |
