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:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user