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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user