summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-03-07 20:41:40 +0000
committerSadie Powell <sadie@witchery.services>2024-03-07 20:55:22 +0000
commit86e3556438942d8cf5b98264e0533e10c873d7af (patch)
tree487db49a3819abae59e401cd65b7cf2ebd0bf47c
parent12214bee7228f884918dacff56108604e10bdc46 (diff)
Fix some misc bugs in the InspIRCd protocol module.
Closes #373.
-rw-r--r--modules/protocol/inspircd.cpp6
1 files 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"))
{