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/cloak_custom.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/cloak_custom.cpp') diff --git a/modules/cloak_custom.cpp b/modules/cloak_custom.cpp index adb5370a3..dae917d64 100644 --- a/modules/cloak_custom.cpp +++ b/modules/cloak_custom.cpp @@ -119,7 +119,7 @@ private: CmdResult FailedLogin(LocalUser* user, const std::string& account) { - IRCv3::WriteReply(Reply::Type::FAIL, user, stdrplcap, this, "LOGIN_FAIL", account, FMT::format("Failed to log into the \x02{}\x02 custom cloak account.", account)); + IRCv3::WriteReply(Reply::FAIL, user, stdrplcap, this, "LOGIN_FAIL", account, FMT::format("Failed to log into the \x02{}\x02 custom cloak account.", account)); user->CommandFloodPenalty += 2500; return CmdResult::FAILURE; } @@ -165,7 +165,7 @@ public: } // If they have reached this point then the login succeeded, - IRCv3::WriteReply(Reply::Type::NOTE, user, stdrplcap, this, "LOGIN_SUCCESS", it->first, account.cloak.ToString(), FMT::format("You are now logged in as \x02{}\x02; updating your cloak to \x02{}\x02.", + IRCv3::WriteReply(Reply::NOTE, user, stdrplcap, this, "LOGIN_SUCCESS", it->first, account.cloak.ToString(), FMT::format("You are now logged in as \x02{}\x02; updating your cloak to \x02{}\x02.", it->first, account.cloak.ToString())); cloakext.Set(user, account.cloak); -- cgit v1.3.1-10-gc9f91