diff options
| author | 2026-03-05 17:03:09 +0000 | |
|---|---|---|
| committer | 2026-03-05 17:07:09 +0000 | |
| commit | 35d04834c9d17b63cc859bf1ecebd2704f9ee741 (patch) | |
| tree | b14bac0f8df52e404a1cfae1b7923ac4c0c91035 /modules/setident.cpp | |
| parent | Fix 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/setident.cpp')
| -rw-r--r-- | modules/setident.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/setident.cpp b/modules/setident.cpp index df4f9c94f..89fe6d892 100644 --- a/modules/setident.cpp +++ b/modules/setident.cpp @@ -75,13 +75,13 @@ public: const auto& newuser = parameters.back(); if (newuser.size() > ServerInstance->Config->Limits.MaxUser) { - IRCv3::WriteReply(Reply::Type::FAIL, user, cap, this, "INVALID_USERNAME", "Username is too long"); + IRCv3::WriteReply(Reply::FAIL, user, cap, this, "INVALID_USERNAME", "Username is too long"); return CmdResult::FAILURE; } if (!ServerInstance->Users.IsUser(parameters[0])) { - IRCv3::WriteReply(Reply::Type::FAIL, user, cap, this, "INVALID_USERNAME", "Invalid characters in username"); + IRCv3::WriteReply(Reply::FAIL, user, cap, this, "INVALID_USERNAME", "Invalid characters in username"); return CmdResult::FAILURE; } |
