aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shun.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/shun.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/shun.cpp')
-rw-r--r--modules/shun.cpp6
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;
}