From 8efcd684d31b5754eaf09ae9ffd710617c30c7b3 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Tue, 1 May 2018 15:20:00 +0200 Subject: [PATCH] Fix /SPAMFILTER add having the regex syntax check backwards. (Not too surprising when add is 0 and delete is 1) Not fatal, as error was still handled & send, but it went to all opers instead of just the one person adding it.. --- src/modules/m_tkl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/m_tkl.c b/src/modules/m_tkl.c index 5b2b7cea0..f46ecae09 100644 --- a/src/modules/m_tkl.c +++ b/src/modules/m_tkl.c @@ -811,7 +811,7 @@ char *err = NULL; actionbuf[0] = banact_valtochar(action); actionbuf[1] = '\0'; - if (whattodo == 1) + if (whattodo == 0) { /* now check the regex / match field... */ m = unreal_create_match(match_type, parv[7], &err);