# HG changeset patch # User Kim Alvefur # Date 1470757051 -7200 # Node ID df96e2613cb6d0f4855d40d1838f7ce0730f183c # Parent 33a0988e5f1cf2c8436cdf01b5cd32b19bc85e94 mod_spam_reporting: Fix syntax [luacheck] diff -r 33a0988e5f1c -r df96e2613cb6 mod_spam_reporting/mod_spam_reporting.lua --- a/mod_spam_reporting/mod_spam_reporting.lua Tue Aug 09 17:36:02 2016 +0200 +++ b/mod_spam_reporting/mod_spam_reporting.lua Tue Aug 09 17:37:31 2016 +0200 @@ -12,7 +12,7 @@ local jid = item.attr.jid; if not report or not jid then return end local type = report:get_child("spam") and "spam" or - is_abuse = report:get_child("abuse") and "abuse" or + report:get_child("abuse") and "abuse" or "unknown"; local reason = report:get_child_text("reason") or "no reason given"; module:log("warn", "Received report of %s from JID '%s', %s", type, jid, reason);