summaryrefslogtreecommitdiff
path: root/modules/commands/cs_xop.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2023-11-23 15:10:03 +0000
committerSadie Powell <sadie@witchery.services>2023-11-23 15:10:03 +0000
commit3371941be5eb2d783a512d326f28165d101da6ee (patch)
tree3781e2c9e1a503f6276ebc74a0314b77c19acffa /modules/commands/cs_xop.cpp
parent70d72b62df3045590297eceba5649b8417dc3f4a (diff)
Allow users to opt-out of being added to channel access lists.
Diffstat (limited to 'modules/commands/cs_xop.cpp')
-rw-r--r--modules/commands/cs_xop.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/commands/cs_xop.cpp b/modules/commands/cs_xop.cpp
index 69f998740..051af5470 100644
--- a/modules/commands/cs_xop.cpp
+++ b/modules/commands/cs_xop.cpp
@@ -166,6 +166,12 @@ class CommandCSXOP : public Command
source.Reply(_("Masks and unregistered users may not be on access lists."));
return;
}
+ else if (na && na->nc->HasExt("NEVEROP"))
+ {
+ source.Reply(_("\002%s\002 does not wish to be added to channel access lists."),
+ na->nc->display.c_str());
+ return;
+ }
else if (mask.find_first_of("!*@") == Anope::string::npos && !na)
{
User *targ = User::Find(mask, true);