From 86e3556438942d8cf5b98264e0533e10c873d7af Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 7 Mar 2024 20:41:40 +0000 Subject: [PATCH] Fix some misc bugs in the InspIRCd protocol module. Closes #373. --- modules/protocol/inspircd.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/protocol/inspircd.cpp b/modules/protocol/inspircd.cpp index 3cc6e5c95..769ee9029 100644 --- a/modules/protocol/inspircd.cpp +++ b/modules/protocol/inspircd.cpp @@ -59,7 +59,7 @@ namespace modname.erase(modname.length() - 3); // Extract the module link data (if any). - moddata = (sep == Anope::string::npos) ? "" : module.substr(sep); + moddata = (sep == Anope::string::npos) ? "" : module.substr(sep + 1); Log(LOG_DEBUG) << "Parsed module: " << "name=" << modname << " data=" << moddata; } @@ -112,9 +112,7 @@ public: CanSetVHost = true; CanSetVIdent = true; CanSQLine = true; - CanSQLineChannel = true; CanSZLine = true; - CanSVSHold = true; CanSVSLogout = true; CanCertFP = true; RequiresID = true; @@ -1270,7 +1268,7 @@ struct IRCDMessageCapab final } else if (modname.equals_cs("topiclock")) Servers::Capab.insert("TOPICLOCK"); - else if (module.equals_cs("cban" && moddata.equals_cs("glob"))) + else if (modname.equals_cs("cban") && moddata.equals_cs("glob")) IRCD->CanSQLineChannel = true; else if (modname.equals_cs("services_account")) {