diff options
author | Sadie Powell <sadie@witchery.services> | 2023-11-23 15:10:03 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2023-11-23 15:10:03 +0000 |
commit | 3371941be5eb2d783a512d326f28165d101da6ee (patch) | |
tree | 3781e2c9e1a503f6276ebc74a0314b77c19acffa /modules/commands/cs_access.cpp | |
parent | 70d72b62df3045590297eceba5649b8417dc3f4a (diff) |
Allow users to opt-out of being added to channel access lists.
Diffstat (limited to 'modules/commands/cs_access.cpp')
-rw-r--r-- | modules/commands/cs_access.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/commands/cs_access.cpp b/modules/commands/cs_access.cpp index 7a37c5434..9c0caa9c7 100644 --- a/modules/commands/cs_access.cpp +++ b/modules/commands/cs_access.cpp @@ -166,6 +166,12 @@ class CommandCSAccess : 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); |