1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-06 07:53:14 +02:00
set::central-blocklist::spamreport and ::spamreport-enabled are now GONE.
We now require a normal spamreport block, just like for other spamreport
functionality. So, if you want to enable this feature, use:
spamreport unrealircd { type central-spamreport; }

See https://www.unrealircd.org/docs/Central_spamreport for all info.

You can use CBL with central spamreport or central spamreport without CBL.
All explained at that URL.
This commit is contained in:
Bram Matthys
2023-11-25 11:36:21 +01:00
parent d08160baca
commit 4da58dde41
6 changed files with 91 additions and 104 deletions
+4
View File
@@ -927,6 +927,8 @@ extern void (*crule_free)(CRuleNode **);
extern const char *(*crule_errstring)(int errcode);
extern void (*ban_act_set_reputation)(Client *client, BanAction *action);
extern const char *(*get_central_api_key)(void);
extern int (*central_spamreport)(Client *target);
extern int (*central_spamreport_enabled)(void);
/* /Efuncs */
/* TLS functions */
@@ -982,6 +984,8 @@ extern void cancel_ident_lookup_default_handler(Client *client);
extern int spamreport_default_handler(Client *client, const char *ip, NameValuePrioList *details, const char *spamreport_block);
extern void ban_act_set_reputation_default_handler(Client *client, BanAction *action);
extern const char *get_central_api_key_default_handler(void);
extern int central_spamreport_default_handler(Client *target);
extern int central_spamreport_enabled_default_handler(void);
/* End of default handlers for efunctions */
extern MODVAR MOTDFile opermotd, svsmotd, motd, botmotd, smotd, rules;
+2
View File
@@ -2685,6 +2685,8 @@ enum EfunctionType {
EFUNC_CRULE_ERRSTRING,
EFUNC_BAN_ACT_SET_REPUTATION,
EFUNC_GET_CENTRAL_API_KEY,
EFUNC_CENTRAL_SPAMREPORT,
EFUNC_CENTRAL_SPAMREPORT_ENABLED,
};
/* Module flags */