From 35d04834c9d17b63cc859bf1ecebd2704f9ee741 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 5 Mar 2026 17:03:09 +0000 Subject: Switch Reply::Type to be an enum instead of an enum class. This is shorter and its fully disambiguated anyway. --- modules/setidle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/setidle.cpp') 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; } }; -- cgit v1.3.1-10-gc9f91