1
0
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:
Bram Matthys
2024-09-23 13:08:57 +02:00
parent e238eb7a4f
commit 7d37795353
4 changed files with 23 additions and 1 deletions
+2 -1
View File
@@ -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;