1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 18:56:39 +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
-2
View File
@@ -817,8 +817,6 @@ opertype
*
* This can be used to automatically oper users who identify for services operator accounts, and is
* useful for setting modes such as Plexus's user mode +N.
*
* Note that some IRCds, such as InspIRCd, do not allow directly setting +o, and this will not work.
*/
#modes = "+o"
}
+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;