# HG changeset patch # User Kim Alvefur # Date 1491077924 -7200 # Node ID 62c540d51d50d6374dec5e792a22fe9724451cdf # Parent cd6cef579e8291a803329ae6777936570fecdd69 mod_blocklist: Use local variable [luacheck] diff -r cd6cef579e82 -r 62c540d51d50 plugins/mod_blocklist.lua --- 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 "");