aboutsummaryrefslogtreecommitdiffstats
path: root/modules/abbreviation.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/abbreviation.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/abbreviation.cpp')
-rw-r--r--modules/abbreviation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/abbreviation.cpp b/modules/abbreviation.cpp
index 48e22463a..1101ede7f 100644
--- a/modules/abbreviation.cpp
+++ b/modules/abbreviation.cpp
@@ -69,7 +69,7 @@ public:
if (extracommands.length() > maxlen)
{
- IRCv3::WriteReply(Reply::Type::FAIL, user, stdrplcap, nullptr, "AMBIGUOUS_ABBREVIATION",
+ IRCv3::WriteReply(Reply::FAIL, user, stdrplcap, nullptr, "AMBIGUOUS_ABBREVIATION",
"Ambiguous abbreviation and too many possible matches.");
return MOD_RES_DENY;
}
@@ -87,7 +87,7 @@ public:
/* Ambiguous command, list the matches */
if (!extracommands.empty())
{
- IRCv3::WriteReply(Reply::Type::FAIL, user, stdrplcap, nullptr, "AMBIGUOUS_ABBREVIATION",
+ IRCv3::WriteReply(Reply::FAIL, user, stdrplcap, nullptr, "AMBIGUOUS_ABBREVIATION",
FMT::format("Ambiguous abbreviation, possible matches: {}{}", foundcommand, extracommands));
return MOD_RES_DENY;
}