aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sethost.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/sethost.cpp
parentFix using the wrong parameter in the rline module. (diff)
downloadinspircd++-35d04834c9d17b63cc859bf1ecebd2704f9ee741.tar.gz
inspircd++-35d04834c9d17b63cc859bf1ecebd2704f9ee741.tar.bz2
inspircd++-35d04834c9d17b63cc859bf1ecebd2704f9ee741.zip
Switch Reply::Type to be an enum instead of an enum class.
This is shorter and its fully disambiguated anyway.
Diffstat (limited to 'modules/sethost.cpp')
-rw-r--r--modules/sethost.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/sethost.cpp b/modules/sethost.cpp
index 566cc5fce..f783ba0bc 100644
--- a/modules/sethost.cpp
+++ b/modules/sethost.cpp
@@ -76,7 +76,7 @@ public:
const auto& newhost = parameters.back();
if (newhost.size() > ServerInstance->Config->Limits.MaxHost)
{
- IRCv3::WriteReply(Reply::Type::FAIL, user, cap, this, "INVALID_HOSTNAME", "Hostname is too long");
+ IRCv3::WriteReply(Reply::FAIL, user, cap, this, "INVALID_HOSTNAME", "Hostname is too long");
return CmdResult::FAILURE;
}
@@ -84,7 +84,7 @@ public:
{
if (!hostmap.test(static_cast<unsigned char>(chr)))
{
- IRCv3::WriteReply(Reply::Type::FAIL, user, cap, this, "INVALID_HOSTNAME", "Invalid characters in hostname");
+ IRCv3::WriteReply(Reply::FAIL, user, cap, this, "INVALID_HOSTNAME", "Invalid characters in hostname");
return CmdResult::FAILURE;
}
}