mirror of
https://github.com/anope/anope.git
synced 2026-06-25 03:46:36 +02:00
If the IRCd sends a field limit then use it over that of the config.
This commit is contained in:
@@ -71,9 +71,9 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
if (host.length() > Config->GetBlock("networkinfo")->Get<unsigned>("hostlen"))
|
||||
if (host.length() > IRCD->GetMaxHost())
|
||||
{
|
||||
source.Reply(HOST_SET_TOOLONG, Config->GetBlock("networkinfo")->Get<unsigned>("hostlen"));
|
||||
source.Reply(HOST_SET_TOOLONG, IRCD->GetMaxHost());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -177,9 +177,9 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
if (host.length() > Config->GetBlock("networkinfo")->Get<unsigned>("hostlen"))
|
||||
if (host.length() > IRCD->GetMaxHost())
|
||||
{
|
||||
source.Reply(HOST_SET_TOOLONG, Config->GetBlock("networkinfo")->Get<unsigned>("hostlen"));
|
||||
source.Reply(HOST_SET_TOOLONG, IRCD->GetMaxHost());
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user