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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user