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_satopic.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_satopic.cpp')
| -rw-r--r-- | src/modules/m_satopic.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_satopic.cpp b/src/modules/m_satopic.cpp index 1c4ad4b82..585887cdc 100644 --- a/src/modules/m_satopic.cpp +++ b/src/modules/m_satopic.cpp @@ -50,18 +50,18 @@ class CommandSATopic : public Command if (target->topic == newTopic) { user->WriteNotice(InspIRCd::Format("The topic on %s is already what you are trying to change it to.", target->name.c_str())); - return CMD_SUCCESS; + return CmdResult::SUCCESS; } target->SetTopic(user, newTopic, ServerInstance->Time(), NULL); ServerInstance->SNO.WriteGlobalSno('a', user->nick + " used SATOPIC on " + target->name + ", new topic: " + newTopic); - return CMD_SUCCESS; + return CmdResult::SUCCESS; } else { user->WriteNumeric(Numerics::NoSuchChannel(parameters[0])); - return CMD_FAILURE; + return CmdResult::FAILURE; } } }; |
