diff options
| author | 2018-09-23 18:41:47 +0200 | |
|---|---|---|
| committer | 2018-09-23 18:41:47 +0200 | |
| commit | 02c5c8567add83f54d01400fa03b582bef354b46 (patch) | |
| tree | 1ca8554798fb090d7e7694a44e056a035269d842 | |
| parent | Similarly, use sptr/acptr to conform to current style. (diff) | |
| download | unrealircd-unreal40.tar.gz unrealircd-unreal40.tar.bz2 unrealircd-unreal40.zip | |
Fix rare crash if deleting spamfilter by id that isn't a spamfilter. unreal40
| -rw-r--r-- | src/modules/m_tkl.c | 2 |
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; |
