Changeset

2298:a59671b3dd43

mod_spam_reporting: Include jid in event
author Kim Alvefur <zash@zash.se>
date Sun, 11 Sep 2016 00:09:52 +0200
parents 2297:992e40dab31d
children 2299:e099586f9de5
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 31 16:24:32 2016 +0100
+++ b/mod_spam_reporting/mod_spam_reporting.lua	Sun Sep 11 00:09:52 2016 +0200
@@ -22,7 +22,7 @@
 			local reason = report:get_child_text("text") or "no reason given";
 			module:log("warn", "Received report of %s from JID '%s', %s", type, jid, reason);
 			module:fire_event(module.name.."/"..type.."-report", {
-				origin = event.origin, stanza = event.stanza,
+				origin = event.origin, stanza = event.stanza, jid = jid,
 				item = item, report = report, reason = reason, });
 		end
 	end