# HG changeset patch # User Kim Alvefur # Date 1471707884 -7200 # Node ID bd1117002a9b5e66c873f606a58cfa189d575882 # Parent 122f0e53dc5a012654fff0a360ab4b4a6ad3c3d5 mod_spam_reporting: Correctly check child, not diff -r 122f0e53dc5a -r bd1117002a9b mod_spam_reporting/mod_spam_reporting.lua --- 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,