aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Bram Matthys2018-09-23 18:41:47 +0200
committerGravatar Bram Matthys2018-09-23 18:41:47 +0200
commit02c5c8567add83f54d01400fa03b582bef354b46 (patch)
tree1ca8554798fb090d7e7694a44e056a035269d842 /src
parentSimilarly, use sptr/acptr to conform to current style. (diff)
downloadunrealircd-unreal40.tar.gz
unrealircd-unreal40.tar.bz2
unrealircd-unreal40.zip
Fix rare crash if deleting spamfilter by id that isn't a spamfilter. unreal40
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_tkl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_tkl.c b/src/modules/m_tkl.c
index 8954bbe55..52a0022b2 100644
--- a/src/modules/m_tkl.c
+++ b/src/modules/m_tkl.c
@@ -675,7 +675,7 @@ int spamfilter_del_by_id(aClient *sptr, char *id)
{
for (tk = tklines[index]; tk; tk = tk->next)
{
- if ((tk->type & (TKL_GLOBAL|TKL_SPAMF)) && !strcmp(spamfilter_id(tk), id))
+ if (((tk->type & (TKL_GLOBAL|TKL_SPAMF)) == (TKL_GLOBAL|TKL_SPAMF)) && !strcmp(spamfilter_id(tk), id))
{
found = 1;
break;