Changeset

4661:e40ed7d93d68

mod_spam_reporting: Missed a spot > Received report of function<[C]:-1>(...) from JID 'spammer@spam.test', (nil)
author Kim Alvefur <zash@zash.se>
date Wed, 25 Aug 2021 19:33:59 +0200
parents 4660:ce826ac8496e
children 4662:a357c3e3bd32
files mod_spam_reporting/mod_spam_reporting.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_spam_reporting/mod_spam_reporting.lua	Wed Aug 25 19:04:40 2021 +0200
+++ b/mod_spam_reporting/mod_spam_reporting.lua	Wed Aug 25 19:33:59 2021 +0200
@@ -33,7 +33,7 @@
 			end
 
 			if report_type then
-				module:log("warn", "Received report of %s from JID '%s', %s", type, jid, reason);
+				module:log("warn", "Received report of %s from JID '%s', %s", report_type, jid, reason);
 				module:fire_event(module.name.."/"..report_type.."-report", {
 					origin = event.origin, stanza = event.stanza, jid = jid,
 					item = item, report = report, reason = reason, });