mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-06-12 17:14:46 +02:00
Fix rare crash if deleting spamfilter by id that isn't a spamfilter.
This commit is contained in:
+1
-1
@@ -675,7 +675,7 @@ int spamfilter_del_by_id(aClient *sptr, char *id)
|
|||||||
{
|
{
|
||||||
for (tk = tklines[index]; tk; tk = tk->next)
|
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;
|
found = 1;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user