1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-06 19:23:13 +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
+1 -1
View File
@@ -245,7 +245,7 @@ CMD_FUNC(cmd_topic)
Hook *tmphook;
int n;
if ((n = run_spamfilter(sptr, topic, SPAMF_TOPIC, chptr->chname, 0, NULL)) < 0)
if (match_spamfilter(sptr, topic, SPAMF_TOPIC, chptr->chname, 0, NULL))
return;
for (tmphook = Hooks[HOOKTYPE_PRE_LOCAL_TOPIC]; tmphook; tmphook = tmphook->next) {