Diff

mod_spam_reporting/mod_spam_reporting.lua @ 2298:a59671b3dd43

mod_spam_reporting: Include jid in event
author Kim Alvefur <zash@zash.se>
date Sun, 11 Sep 2016 00:09:52 +0200
parent 2283:bd1117002a9b
child 4612:fe24bda72838
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