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_topiclock.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_topiclock.cpp')
| -rw-r--r-- | src/modules/m_topiclock.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_topiclock.cpp b/src/modules/m_topiclock.cpp index ac27b1529..6cc88b8df 100644 --- a/src/modules/m_topiclock.cpp +++ b/src/modules/m_topiclock.cpp @@ -39,12 +39,12 @@ class CommandSVSTOPIC : public Command if (!user->server->IsULine()) { // Ulines only - return CMD_FAILURE; + return CmdResult::FAILURE; } Channel* chan = ServerInstance->FindChan(parameters[0]); if (!chan) - return CMD_FAILURE; + return CmdResult::FAILURE; if (parameters.size() == 4) { @@ -53,7 +53,7 @@ class CommandSVSTOPIC : public Command if (!topicts) { ServerInstance->Logs.Log(MODNAME, LOG_DEFAULT, "Received SVSTOPIC with a 0 topicts, dropped."); - return CMD_INVALID; + return CmdResult::INVALID; } chan->SetTopic(user, parameters[3], topicts, ¶meters[2]); @@ -65,7 +65,7 @@ class CommandSVSTOPIC : public Command chan->setby.clear(); } - return CMD_SUCCESS; + return CmdResult::SUCCESS; } RouteDescriptor GetRouting(User* user, const Params& parameters) override |
