Diff

plugins/mod_blocklist.lua @ 8040:62c540d51d50

mod_blocklist: Use local variable [luacheck]
author Kim Alvefur <zash@zash.se>
date Sat, 01 Apr 2017 22:18:44 +0200
parent 7968:f0e35f4db9e0
child 8275:13dad833e821
line wrap: on
line diff
--- a/plugins/mod_blocklist.lua	Sat Apr 01 19:47:02 2017 +0200
+++ b/plugins/mod_blocklist.lua	Sat Apr 01 22:18:44 2017 +0200
@@ -229,7 +229,7 @@
 -- Buggy clients
 module:hook("iq-error/self/blocklist-push", function (event)
 	local origin, stanza = event.origin, event.stanza;
-	local _, condition, text = event.stanza:get_error();
+	local _, condition, text = stanza:get_error();
 	local log = (origin.log or module._log);
 	log("warn", "Client returned an error in response to notification from mod_%s: %s%s%s",
 		module.name, condition, text and ": " or "", text or "");