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/cban.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/cban.cpp') diff --git a/modules/cban.cpp b/modules/cban.cpp index d271e5aeb..c0e69c9fb 100644 --- a/modules/cban.cpp +++ b/modules/cban.cpp @@ -121,7 +121,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 CBan list.", parameters[0])); return CmdResult::FAILURE; } @@ -132,7 +132,7 @@ public: unsigned long duration = 0; if (parameters.size() > 2 && !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 CBan: {}.", parameters[1])); return CmdResult::FAILURE; } @@ -154,7 +154,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("CBan on {} already exists.", parameters[0])); return CmdResult::FAILURE; } -- cgit v1.3.1-10-gc9f91