1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-10 04:43:12 +02:00

Add set::max-stats-matches which limits output such as '/STATS gline'

to the specified number of lines. This defaults to 1000.
This will prevent IRCOps from being flooded off ("Max SendQ exceeded")
if they list all *LINES and there are thousands.
In the newly introduced error message, after too many matches,
we also kindly point out to use filters like '/STATS gline +m *.nl'
This commit is contained in:
Bram Matthys
2020-12-06 15:50:28 +01:00
parent 8c04036fd8
commit 4b53b02299
4 changed files with 110 additions and 33 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ int (*find_shun)(Client *client);
int(*find_spamfilter_user)(Client *client, int flags);
TKL *(*find_qline)(Client *client, char *nick, int *ishold);
TKL *(*find_tkline_match_zap)(Client *client);
void (*tkl_stats)(Client *client, int type, char *para);
void (*tkl_stats)(Client *client, int type, char *para, int *cnt);
void (*tkl_sync)(Client *client);
void (*cmd_tkl)(Client *client, MessageTag *mtags, int parc, char *parv[]);
int (*place_host_ban)(Client *client, BanAction action, char *reason, long duration);