From c4e9c0bf8548da1bf4fe2cfe5e7f5ab101b35e52 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 22 Feb 2024 15:58:23 +0000 Subject: If the IRCd sends a field limit then use it over that of the config. --- modules/chanserv/cs_seen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/chanserv') diff --git a/modules/chanserv/cs_seen.cpp b/modules/chanserv/cs_seen.cpp index 99f44e9fd..6f4119e2f 100644 --- a/modules/chanserv/cs_seen.cpp +++ b/modules/chanserv/cs_seen.cpp @@ -270,9 +270,9 @@ public: if (simple) return this->SimpleSeen(source, params); - if (target.length() > Config->GetBlock("networkinfo")->Get("nicklen")) + if (target.length() > IRCD->GetMaxNick()) { - source.Reply(_("Nick too long, max length is %u characters."), Config->GetBlock("networkinfo")->Get("nicklen")); + source.Reply(_("Nick too long, max length is %zu characters."), IRCD->GetMaxNick()); return; } -- cgit