From 7cb27dabe695505d2eb7b942c4fbf518dda8e6b3 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 26 Oct 2020 23:40:24 +0000 Subject: Convert CmdResult to an 8-bit strongly typed enum. --- src/modules/m_ojoin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_ojoin.cpp') 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; } }; -- cgit v1.3.1-10-gc9f91