changeset 2283:bd1117002a9b

mod_spam_reporting: Correctly check <text> child, not <reason>
author Kim Alvefur <zash@zash.se>
date Sat, 20 Aug 2016 17:44:44 +0200 (2016-08-20)
parents 122f0e53dc5a
children 1266f5c17c0d
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	Sat Aug 20 17:22:32 2016 +0200
+++ b/mod_spam_reporting/mod_spam_reporting.lua	Sat Aug 20 17:44:44 2016 +0200
@@ -19,7 +19,7 @@
 			local type = report:get_child("spam") and "spam" or
 				report:get_child("abuse") and "abuse" or
 				"unknown";
-			local reason = report:get_child_text("reason") or "no reason given";
+			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,