1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 04:43:12 +02:00

Fix the length limit for InspIRCd v3 S2S messages.

This commit is contained in:
Peter Powell
2019-12-14 18:03:51 +00:00
parent ff0109d6ba
commit a4ab6876c3
+4 -2
View File
@@ -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<Anope::string> &params) 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<unsigned>::max();
}
};