# HG changeset patch
# User Matthew Wild <mwild1@gmail.com>
# Date 1710253663 0
# Node ID bfc35ae9edcbeb9959cdf14a2686ba289ec4a939
# Parent  b5a110544fd43ac58ec81640004a97c4faea7519
mod_firewall: 'REPORT TO': fix default reason fallback if none is provided

diff -r b5a110544fd4 -r bfc35ae9edcb mod_firewall/actions.lib.lua
--- 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 = [[