1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-12 17:34:46 +02:00

Fix rare crash if deleting spamfilter by id that isn't a spamfilter.

This commit is contained in:
Bram Matthys
2018-09-23 18:41:47 +02:00
parent b4b6ebbca3
commit 02c5c8567a
+1 -1
View File
@@ -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;