diff options
| author | 2026-03-05 17:03:09 +0000 | |
|---|---|---|
| committer | 2026-03-05 17:07:09 +0000 | |
| commit | 35d04834c9d17b63cc859bf1ecebd2704f9ee741 (patch) | |
| tree | b14bac0f8df52e404a1cfae1b7923ac4c0c91035 /modules/setidle.cpp | |
| parent | Fix using the wrong parameter in the rline module. (diff) | |
Switch Reply::Type to be an enum instead of an enum class.
This is shorter and its fully disambiguated anyway.
Diffstat (limited to 'modules/setidle.cpp')
| -rw-r--r-- | modules/setidle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/setidle.cpp b/modules/setidle.cpp index 19b23b35d..3714c1add 100644 --- a/modules/setidle.cpp +++ b/modules/setidle.cpp @@ -48,7 +48,7 @@ public: unsigned long idle; if (!Duration::TryFrom(parameters[0], idle)) { - IRCv3::WriteReply(Reply::Type::FAIL, user, stdrplcap, this, "INVALID_IDLE_TIME", parameters[0], "Invalid idle time."); + IRCv3::WriteReply(Reply::FAIL, user, stdrplcap, this, "INVALID_IDLE_TIME", parameters[0], "Invalid idle time."); return CmdResult::FAILURE; } @@ -58,7 +58,7 @@ public: user->signon = user->idle_lastmsg; ServerInstance->SNO.WriteToSnoMask('a', "{} used SETIDLE to set their idle time to {}", user->nick, Duration::ToLongString(idle)); - IRCv3::WriteReply(Reply::Type::NOTE, user, stdrplcap, this, "IDLE_TIME_SET", user->idle_lastmsg, "Idle time set."); + IRCv3::WriteReply(Reply::NOTE, user, stdrplcap, this, "IDLE_TIME_SET", user->idle_lastmsg, "Idle time set."); return CmdResult::SUCCESS; } }; |
