summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-03-08 19:05:12 +0000
committerSadie Powell <sadie@witchery.services>2024-03-08 19:05:12 +0000
commit891375baca44d1b18e60505ecf6ae52bf2c46e29 (patch)
tree6fc6ab173b945c3cf22929e02298620166dc7b1c
parent41a295202ec662829e97283fe39238f2f586346d (diff)
Use a separate CAPAB handler on InspIRCd to avoid pollution.
-rw-r--r--modules/protocol/inspircd.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/protocol/inspircd.cpp b/modules/protocol/inspircd.cpp
index 72f4415ef..fa7a509d6 100644
--- a/modules/protocol/inspircd.cpp
+++ b/modules/protocol/inspircd.cpp
@@ -1034,7 +1034,7 @@ struct IRCDMessageAway final
};
struct IRCDMessageCapab final
- : Message::Capab
+ : IRCDMessage
{
struct ExtBanInfo final
{
@@ -1147,7 +1147,11 @@ struct IRCDMessageCapab final
return true;
}
- IRCDMessageCapab(Module *creator) : Message::Capab(creator, "CAPAB") { SetFlag(FLAG_SOFT_LIMIT); }
+ IRCDMessageCapab(Module *creator)
+ : IRCDMessage(creator, "CAPAB", 1)
+ {
+ SetFlag(FLAG_SOFT_LIMIT);
+ }
void Run(MessageSource &source, const std::vector<Anope::string> &params, const Anope::map<Anope::string> &tags) override
{
@@ -1545,7 +1549,6 @@ struct IRCDMessageCapab final
else if (modname.equals_cs("chgident"))
Servers::Capab.insert("CHGIDENT");
-
}
const auto &anoperegex = Config->GetBlock("options")->Get<const Anope::string>("regexengine");
@@ -1635,8 +1638,6 @@ struct IRCDMessageCapab final
if (!Servers::Capab.count("GLOBOPS"))
Log() << "The remote server does not have the globops module; oper notices will be sent as announcements until the module is loaded.";
}
-
- Message::Capab::Run(source, params, tags);
}
};