Mercurial > prosody-modules
diff mod_spam_reporting/mod_spam_reporting.lua @ 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 |
parents | 0899eeb0b3f7 |
children | a59671b3dd43 |
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,