mod_firewall/actions.lib.lua
changeset 5869 bfc35ae9edcb
parent 5544 1249ab2f797c
child 5871 3f5644aa5c32
--- a/mod_firewall/actions.lib.lua	Tue Mar 12 14:07:00 2024 +0000
+++ b/mod_firewall/actions.lib.lua	Tue Mar 12 14:27:43 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 then
+	elseif reason == "abuse" or not reason or reason = "" then
 		reason = "urn:xmpp:reporting:abuse";
 	end
 	local code = [[