1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-01 13:46:37 +02:00

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..
This commit is contained in:
Bram Matthys
2018-05-01 15:20:00 +02:00
parent 04b3dd24f8
commit 8efcd684d3
+1 -1
View File
@@ -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);