From a4ab6876c3f4afc087a3db90404bbdeb47525e6e Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sat, 14 Dec 2019 18:03:51 +0000 Subject: [PATCH] Fix the length limit for InspIRCd v3 S2S messages. --- modules/protocol/inspircd3.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/protocol/inspircd3.cpp b/modules/protocol/inspircd3.cpp index b7b2fce16..0899f44eb 100644 --- a/modules/protocol/inspircd3.cpp +++ b/modules/protocol/inspircd3.cpp @@ -67,6 +67,7 @@ class InspIRCd3Proto : public IRCDProto CanCertFP = true; RequiresID = true; MaxModes = 20; + MaxLine = 4096; } void SendConnect() anope_override @@ -1431,10 +1432,11 @@ struct IRCDMessageEndburst : IRCDMessage void Run(MessageSource &source, const std::vector ¶ms) anope_override { Server *s = source.GetServer(); - Log(LOG_DEBUG) << "Processed ENDBURST for " << s->GetName(); - s->Sync(true); + + // Once connected the InspIRCd S2S protocol has no max message length. + IRCD->MaxLine = std::numeric_limits::max(); } };