Changeset

8040:62c540d51d50

mod_blocklist: Use local variable [luacheck]
author Kim Alvefur <zash@zash.se>
date Sat, 01 Apr 2017 22:18:44 +0200
parents 8038:cd6cef579e82
children 8041:3b2cc22e9b5b
files plugins/mod_blocklist.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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 "");