1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-05 15:33:12 +02:00

Return values of various functions changed, in particular the ones

that deal with finding TKL's or spamfilters etc.
More will likely follow, to make things more logical.
Also, run_spamfilter -> match_spamfilter
place_host_ban, can_privmsg, check_dcc, find_tkline_match all impacted.
This commit is contained in:
Bram Matthys
2019-10-04 11:30:27 +02:00
parent 3126a3fae4
commit 92df36a87f
15 changed files with 113 additions and 129 deletions
+2 -2
View File
@@ -67,7 +67,7 @@ void (*tkl_stats)(Client *cptr, int type, char *para);
void (*tkl_synch)(Client *sptr);
void (*cmd_tkl)(Client *sptr, MessageTag *mtags, int parc, char *parv[]);
int (*place_host_ban)(Client *sptr, BanAction action, char *reason, long duration);
int (*run_spamfilter)(Client *sptr, char *str_in, int type, char *target, int flags, TKL **rettk);
int (*match_spamfilter)(Client *sptr, char *str_in, int type, char *target, int flags, TKL **rettk);
int (*join_viruschan)(Client *sptr, TKL *tk, int type);
unsigned char *(*StripColors)(unsigned char *text);
const char *(*StripControlCodes)(unsigned char *text);
@@ -304,7 +304,7 @@ void efunctions_init(void)
efunc_init_function(EFUNC_TKL_SYNCH, tkl_synch, NULL);
efunc_init_function(EFUNC_CMD_TKL, cmd_tkl, NULL);
efunc_init_function(EFUNC_PLACE_HOST_BAN, place_host_ban, NULL);
efunc_init_function(EFUNC_DOSPAMFILTER, run_spamfilter, NULL);
efunc_init_function(EFUNC_DOSPAMFILTER, match_spamfilter, NULL);
efunc_init_function(EFUNC_DOSPAMFILTER_VIRUSCHAN, join_viruschan, NULL);
efunc_init_function(EFUNC_STRIPCOLORS, StripColors, NULL);
efunc_init_function(EFUNC_STRIPCONTROLCODES, StripControlCodes, NULL);