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_ojoin.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_ojoin.cpp')
| -rw-r--r-- | src/modules/m_ojoin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_ojoin.cpp b/src/modules/m_ojoin.cpp index 33c50959d..7e9d76bca 100644 --- a/src/modules/m_ojoin.cpp +++ b/src/modules/m_ojoin.cpp @@ -50,7 +50,7 @@ class CommandOjoin : public SplitCommand if (!ServerInstance->IsChannel(parameters[0])) { user->WriteNotice("*** Invalid characters in channel name or name too long"); - return CMD_FAILURE; + return CmdResult::FAILURE; } active = true; @@ -69,7 +69,7 @@ class CommandOjoin : public SplitCommand { channel = ServerInstance->FindChan(parameters[0]); if (!channel) - return CMD_FAILURE; + return CmdResult::FAILURE; ServerInstance->SNO.WriteGlobalSno('a', user->nick+" used OJOIN in "+parameters[0]); // they're already in the channel @@ -79,7 +79,7 @@ class CommandOjoin : public SplitCommand changelist.push_add(*opmode, user->nick); ServerInstance->Modes.Process(ServerInstance->FakeClient, channel, NULL, changelist); } - return CMD_SUCCESS; + return CmdResult::SUCCESS; } }; |
