1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 13:36:38 +02:00

Allow users to opt-out of being added to channel access lists.

This commit is contained in:
Sadie Powell
2023-11-23 15:10:03 +00:00
parent 70d72b62df
commit 3371941be5
6 changed files with 115 additions and 3 deletions
+6
View File
@@ -120,6 +120,12 @@ class CommandCSFlags : 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);