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/shun.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/shun.cpp') diff --git a/modules/shun.cpp b/modules/shun.cpp index ffdfdb7ea..2be43d7c5 100644 --- a/modules/shun.cpp +++ b/modules/shun.cpp @@ -99,7 +99,7 @@ public: } else { - IRCv3::WriteReply(Reply::Type::FAIL, user, stdrplcap, this, "NOT_FOUND", parameters[0], + IRCv3::WriteReply(Reply::FAIL, user, stdrplcap, this, "NOT_FOUND", parameters[0], FMT::format("{} not found on the shun list.", parameters[0])); return CmdResult::FAILURE; } @@ -113,7 +113,7 @@ public: { if (!Duration::TryFrom(parameters[1], duration)) { - IRCv3::WriteReply(Reply::Type::FAIL, user, stdrplcap, this, "INVALID_DURATION", parameters[1], + IRCv3::WriteReply(Reply::FAIL, user, stdrplcap, this, "INVALID_DURATION", parameters[1], FMT::format("Invalid duration for shun: {}.", parameters[1])); return CmdResult::FAILURE; } @@ -143,7 +143,7 @@ public: else { delete r; - IRCv3::WriteReply(Reply::Type::FAIL, user, stdrplcap, this, "ALREADY_EXISTS", parameters[0], + IRCv3::WriteReply(Reply::FAIL, user, stdrplcap, this, "ALREADY_EXISTS", parameters[0], FMT::format("Shun on {} already exists.", parameters[0])); return CmdResult::FAILURE; } -- cgit v1.3.1-10-gc9f91