aboutsummaryrefslogtreecommitdiff
path: root/modules/cloak_custom.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-05 17:03:09 +0000
committerGravatar Sadie Powell2026-03-05 17:07:09 +0000
commit35d04834c9d17b63cc859bf1ecebd2704f9ee741 (patch)
treeb14bac0f8df52e404a1cfae1b7923ac4c0c91035 /modules/cloak_custom.cpp
parentFix 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/cloak_custom.cpp')
-rw-r--r--modules/cloak_custom.cpp4
1 files changed, 2 insertions, 2 deletions
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);