Changeset

2267:df96e2613cb6

mod_spam_reporting: Fix syntax [luacheck]
author Kim Alvefur <zash@zash.se>
date Tue, 09 Aug 2016 17:37:31 +0200
parents 2266:33a0988e5f1c
children 2268:56ea6ff796ba
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	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);