1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-30 22:06:37 +02:00

Integrate security-group functionality in tld::mask.

This commit is contained in:
Bram Matthys
2022-05-14 08:10:20 +02:00
parent 759908ba3a
commit ec4df2da7d
3 changed files with 33 additions and 11 deletions
+7 -3
View File
@@ -935,12 +935,16 @@ int stats_set(Client *client, const char *para)
int stats_tld(Client *client, const char *para)
{
ConfigItem_tld *tld;
ConfigItem_mask *m;
NameValuePrioList *m;
for (tld = conf_tld; tld; tld = tld->next)
{
for (m = tld->mask; m; m = m->next)
sendnumeric(client, RPL_STATSTLINE, m->mask, tld->motd_file, tld->rules_file ? tld->rules_file : "none");
for (m = tld->match->printable_list; m; m = m->next)
{
sendnumeric(client, RPL_STATSTLINE, namevalue_nospaces(m),
tld->motd_file,
tld->rules_file ? tld->rules_file : "none");
}
}
return 0;