1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 05:46:37 +02:00

Allow sending an oper account on InspIRCd.

This commit is contained in:
Sadie Powell
2024-09-26 11:22:10 +01:00
parent 5a0c6b1f18
commit 9fcb022d5e
2 changed files with 11 additions and 2 deletions
+11
View File
@@ -637,6 +637,17 @@ public:
}
}
void SendOper(User *u) override
{
if (spanningtree_proto_ver < 1206)
return; // We can't force an oper on this version.
const Anope::map<Anope::string> tags = {
{ "~automatic", "" },
};
Uplink::Send(tags, "SVSOPER", u->GetUID(), u->Account()->o->ot->GetName());
}
bool IsExtbanValid(const Anope::string &mask) override
{
bool inverted;