diff options
| author | 2026-03-05 17:03:09 +0000 | |
|---|---|---|
| committer | 2026-03-05 17:07:09 +0000 | |
| commit | 35d04834c9d17b63cc859bf1ecebd2704f9ee741 (patch) | |
| tree | b14bac0f8df52e404a1cfae1b7923ac4c0c91035 /modules/cban.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/cban.cpp')
| -rw-r--r-- | modules/cban.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |
