mod_spam_reporting: Fix syntax [luacheck]
authorKim Alvefur <zash@zash.se>
Tue, 09 Aug 2016 17:37:31 +0200
changeset 2271 df96e2613cb6
parent 2270 33a0988e5f1c
child 2272 56ea6ff796ba
mod_spam_reporting: Fix syntax [luacheck]
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);