diff options
author | Peter Powell <petpow@saberuk.com> | 2019-12-14 18:03:51 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-12-14 18:06:53 +0000 |
commit | a4ab6876c3f4afc087a3db90404bbdeb47525e6e (patch) | |
tree | 2d49cc0384fc7e2db46f86040523b3a40d2e1d25 /modules/protocol/inspircd3.cpp | |
parent | ff0109d6bacec36fe40c3806e3ddca30ddc6ad62 (diff) |
Fix the length limit for InspIRCd v3 S2S messages.
Diffstat (limited to 'modules/protocol/inspircd3.cpp')
-rw-r--r-- | modules/protocol/inspircd3.cpp | 6 |
1 files 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<Anope::string> ¶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<unsigned>::max(); } }; |