changeset 5870:1ac4a59ac575

mod_firewall: Fix syntax error (thanks mirux)
author Matthew Wild <mwild1@gmail.com>
date Thu, 14 Mar 2024 09:48:30 +0000
parents faf1f1c833e8
children 1c8197075d04
files mod_firewall/actions.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_firewall/actions.lib.lua	Thu Mar 14 09:55:46 2024 +0100
+++ b/mod_firewall/actions.lib.lua	Thu Mar 14 09:48:30 2024 +0000
@@ -263,7 +263,7 @@
 	local where, reason, text = spec:match("^%s*(%S+) *(%S*) *(.*)$");
 	if reason == "spam" then
 		reason = "urn:xmpp:reporting:spam";
-	elseif reason == "abuse" or not reason or reason = "" then
+	elseif reason == "abuse" or not reason or reason == "" then
 		reason = "urn:xmpp:reporting:abuse";
 	end
 	local code = [[