mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-10 09:03:12 +02:00
Don't list security groups by default, add 'public <yes|no>'
* [Security group blocks](https://www.unrealircd.org/docs/Security-group_block) are now hidden in lists by default. If you want the security group to be shown in things like `MODE #channel +b ~security-group:x` (which shows a list) then you need to use `public yes;`. The default security groups like known-users, webirc-users, etc. are public by default.
This commit is contained in:
@@ -122,7 +122,8 @@ int extban_securitygroup_is_ok(BanContext *b)
|
||||
sendnotice(b->client, "ERROR: Unknown security-group '%s'. Syntax: +b ~security-group:securitygroup or +b ~security-group:!securitygroup", b->banstr);
|
||||
sendnotice(b->client, "Available security groups:");
|
||||
for (s = securitygroups; s; s = s->next)
|
||||
sendnotice(b->client, "%s", s->name);
|
||||
if (s->public)
|
||||
sendnotice(b->client, "%s", s->name);
|
||||
sendnotice(b->client, "unknown-users");
|
||||
sendnotice(b->client, "End of security group list.");
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user