aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_setidle.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-10-26 23:40:24 +0000
committerGravatar Sadie Powell2020-10-27 00:59:11 +0000
commit7cb27dabe695505d2eb7b942c4fbf518dda8e6b3 (patch)
tree12f7541d3389efa9a084d2a4859d6ce4ede43b03 /src/modules/m_setidle.cpp
parentReplace the check for eventfd() with a C++17 header check. (diff)
downloadinspircd++-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_setidle.cpp')
-rw-r--r--src/modules/m_setidle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_setidle.cpp b/src/modules/m_setidle.cpp
index c93bd1da7..bb71ae9aa 100644
--- a/src/modules/m_setidle.cpp
+++ b/src/modules/m_setidle.cpp
@@ -51,7 +51,7 @@ class CommandSetidle : public SplitCommand
if (!InspIRCd::Duration(parameters[0], idle))
{
user->WriteNumeric(ERR_INVALIDIDLETIME, "Invalid idle time.");
- return CMD_FAILURE;
+ return CmdResult::FAILURE;
}
user->idle_lastmsg = (ServerInstance->Time() - idle);
// minor tweak - we cant have signon time shorter than our idle time!
@@ -60,7 +60,7 @@ class CommandSetidle : public SplitCommand
ServerInstance->SNO.WriteToSnoMask('a', user->nick+" used SETIDLE to set their idle time to "+ConvToStr(idle)+" seconds");
user->WriteNumeric(RPL_IDLETIMESET, "Idle time set.");
- return CMD_SUCCESS;
+ return CmdResult::SUCCESS;
}
};