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:
@@ -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"; }
|
||||
|
||||
/*
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -39,6 +39,7 @@ public:
|
||||
{
|
||||
DefaultPseudoclientModes = "+";
|
||||
CanSVSNick = true;
|
||||
CanSVSNOOP = true;
|
||||
CanSNLine = true;
|
||||
CanSQLine = true;
|
||||
CanSQLineChannel = true;
|
||||
|
||||
@@ -25,6 +25,7 @@ public:
|
||||
DefaultPseudoclientModes = "+iU";
|
||||
CanSVSNick = true;
|
||||
CanSVSJoin = true;
|
||||
CanSVSNOOP = true;
|
||||
CanSetVHost = true;
|
||||
CanSetVIdent = true;
|
||||
CanSNLine = true;
|
||||
|
||||
@@ -28,6 +28,7 @@ public:
|
||||
DefaultPseudoclientModes = "+BioqS";
|
||||
CanSVSNick = true;
|
||||
CanSVSJoin = true;
|
||||
CanSVSNOOP = true;
|
||||
CanSetVHost = true;
|
||||
CanSetVIdent = true;
|
||||
CanSNLine = true;
|
||||
|
||||
Reference in New Issue
Block a user