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_spanningtree/fmode.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_spanningtree/fmode.cpp') diff --git a/src/modules/m_spanningtree/fmode.cpp b/src/modules/m_spanningtree/fmode.cpp index ba0717e8e..b7430b348 100644 --- a/src/modules/m_spanningtree/fmode.cpp +++ b/src/modules/m_spanningtree/fmode.cpp @@ -33,7 +33,7 @@ CmdResult CommandFMode::Handle(User* who, Params& params) Channel* const chan = ServerInstance->FindChan(params[0]); if (!chan) // Channel doesn't exist - return CMD_FAILURE; + return CmdResult::FAILURE; // Extract the TS of the channel in question time_t ourTS = chan->age; @@ -41,7 +41,7 @@ CmdResult CommandFMode::Handle(User* who, Params& params) /* If the TS is greater than ours, we drop the mode and don't pass it anywhere. */ if (TS > ourTS) - return CMD_FAILURE; + return CmdResult::FAILURE; /* TS is equal or less: apply the mode change locally and forward the message */ @@ -55,5 +55,5 @@ CmdResult CommandFMode::Handle(User* who, Params& params) flags |= ModeParser::MODE_MERGE; ServerInstance->Modes.Process(who, chan, NULL, changelist, flags); - return CMD_SUCCESS; + return CmdResult::SUCCESS; } -- cgit v1.3.1-10-gc9f91