summaryrefslogtreecommitdiff
path: root/modules/operserv
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-04-15 21:07:52 +0100
committerSadie Powell <sadie@witchery.services>2024-04-15 21:08:40 +0100
commit5473311bd745a15f3cc718d2a3101c5b61b006fc (patch)
tree1425af6be212d2014668887f98609ac39fc006c9 /modules/operserv
parentf3ebb674696c9caf78eead88e6513e077c95d4db (diff)
Only enable os_noop on IRCDs that actually have a SendSVSNOOP impl.
Diffstat (limited to 'modules/operserv')
-rw-r--r--modules/operserv/os_noop.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/operserv/os_noop.cpp b/modules/operserv/os_noop.cpp
index d4049abd5..1c41181dc 100644
--- a/modules/operserv/os_noop.cpp
+++ b/modules/operserv/os_noop.cpp
@@ -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