mirror of
https://github.com/anope/anope.git
synced 2026-06-29 10:16:39 +02:00
If the IRCd sends a field limit then use it over that of the config.
This commit is contained in:
@@ -270,9 +270,9 @@ public:
|
||||
if (simple)
|
||||
return this->SimpleSeen(source, params);
|
||||
|
||||
if (target.length() > Config->GetBlock("networkinfo")->Get<unsigned>("nicklen"))
|
||||
if (target.length() > IRCD->GetMaxNick())
|
||||
{
|
||||
source.Reply(_("Nick too long, max length is %u characters."), Config->GetBlock("networkinfo")->Get<unsigned>("nicklen"));
|
||||
source.Reply(_("Nick too long, max length is %zu characters."), IRCD->GetMaxNick());
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user