1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 12:23:13 +02:00

Only enable os_noop on IRCDs that actually have a SendSVSNOOP impl.

This commit is contained in:
Sadie Powell
2024-04-15 21:07:52 +01:00
parent f3ebb67469
commit 5473311bd7
6 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -503,7 +503,7 @@ command { service = "OperServ"; name = "RANDOMNEWS"; command = "operserv/randomn
*
* Used to NOOP a server, which prevents users from opering on that server.
*/
module { name = "os_noop" }
#module { name = "os_noop" }
command { service = "OperServ"; name = "NOOP"; command = "operserv/noop"; permission = "operserv/noop"; }
/*
+3
View File
@@ -74,6 +74,9 @@ public:
/* Can we force join or part users? */
bool CanSVSJoin = false;
/** Can we force servers to remove opers? */
bool CanSVSNOOP = false;
/* Can we set vhosts on users? */
bool CanSetVHost = false;
+2 -1
View File
@@ -82,7 +82,8 @@ public:
OSNOOP(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR),
commandosnoop(this), noop(this, "noop")
{
if (!IRCD || !IRCD->CanSVSNOOP)
throw ModuleException("Your IRCd does not support SVSNOOP.");
}
void OnUserModeSet(const MessageSource &, User *u, const Anope::string &mname) override
+1
View File
@@ -39,6 +39,7 @@ public:
{
DefaultPseudoclientModes = "+";
CanSVSNick = true;
CanSVSNOOP = true;
CanSNLine = true;
CanSQLine = true;
CanSQLineChannel = true;
+1
View File
@@ -25,6 +25,7 @@ public:
DefaultPseudoclientModes = "+iU";
CanSVSNick = true;
CanSVSJoin = true;
CanSVSNOOP = true;
CanSetVHost = true;
CanSetVIdent = true;
CanSNLine = true;
+1
View File
@@ -28,6 +28,7 @@ public:
DefaultPseudoclientModes = "+BioqS";
CanSVSNick = true;
CanSVSJoin = true;
CanSVSNOOP = true;
CanSetVHost = true;
CanSetVIdent = true;
CanSNLine = true;