aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/fmode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_spanningtree/fmode.cpp')
-rw-r--r--src/modules/m_spanningtree/fmode.cpp6
1 files changed, 3 insertions, 3 deletions
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;
}