1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 13:06:38 +02:00

Simplify limit extraction code.

This commit is contained in:
Sadie Powell
2024-03-12 12:22:57 +00:00
parent 63d682314b
commit 06add0e5fc
12 changed files with 58 additions and 121 deletions
+4 -4
View File
@@ -122,9 +122,9 @@ public:
if (!user.empty())
{
if (user.length() > IRCD->GetMaxUser())
if (user.length() > IRCD->MaxUser)
{
source.Reply(HOST_SET_IDENTTOOLONG, IRCD->GetMaxUser());
source.Reply(HOST_SET_IDENTTOOLONG, IRCD->MaxUser);
return;
}
else if (!IRCD->CanSetVIdent)
@@ -142,9 +142,9 @@ public:
}
}
if (host.length() > IRCD->GetMaxHost())
if (host.length() > IRCD->MaxHost)
{
source.Reply(HOST_SET_TOOLONG, IRCD->GetMaxHost());
source.Reply(HOST_SET_TOOLONG, IRCD->MaxHost);
return;
}