diff options
| author | 2026-03-05 17:03:09 +0000 | |
|---|---|---|
| committer | 2026-03-05 17:07:09 +0000 | |
| commit | 35d04834c9d17b63cc859bf1ecebd2704f9ee741 (patch) | |
| tree | b14bac0f8df52e404a1cfae1b7923ac4c0c91035 /modules/shun.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/shun.cpp')
| -rw-r--r-- | modules/shun.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/shun.cpp b/modules/shun.cpp index ffdfdb7ea..2be43d7c5 100644 --- a/modules/shun.cpp +++ b/modules/shun.cpp @@ -99,7 +99,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 shun list.", parameters[0])); return CmdResult::FAILURE; } @@ -113,7 +113,7 @@ public: { if (!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 shun: {}.", parameters[1])); return CmdResult::FAILURE; } @@ -143,7 +143,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("Shun on {} already exists.", parameters[0])); return CmdResult::FAILURE; } |
