mirror of
https://github.com/anope/anope.git
synced 2026-07-03 04:43:12 +02:00
Simplify limit extraction code.
This commit is contained in:
@@ -71,9 +71,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;
|
||||
}
|
||||
|
||||
@@ -174,9 +174,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