From 54719fbfc615b6632852b02327ecc2ed3f200a3e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 12 Mar 2024 12:28:11 +0000 Subject: Allow protocol modules to declare that they have no line/mode limit. InspIRCd allows us to send infinite length lines and mode changes and will restack before sending to users. --- modules/protocol/inspircd.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules') diff --git a/modules/protocol/inspircd.cpp b/modules/protocol/inspircd.cpp index 8ba398038..52a2bacdc 100644 --- a/modules/protocol/inspircd.cpp +++ b/modules/protocol/inspircd.cpp @@ -143,8 +143,8 @@ public: CanSVSLogout = true; CanCertFP = true; RequiresID = true; - MaxModes = 20; - MaxLine = 4096; + MaxModes = 0; + MaxLine = 0; } size_t GetMaxListFor(Channel *c, ChannelMode *cm) override @@ -1512,8 +1512,6 @@ struct IRCDMessageCapab final IRCD->MaxChannel = tokvalue; else if (tokname == "MAXHOST") IRCD->MaxHost = tokvalue; - else if (tokname == "MAXMODES") - IRCD->MaxModes = tokvalue; else if (tokname == "MAXNICK") IRCD->MaxNick = tokvalue; else if (tokname == "MAXUSER") -- cgit