# HG changeset patch # User Kim Alvefur # Date 1489017572 -3600 # Node ID f0e35f4db9e0e0bda5cf3c8448e6532c06123f8d # Parent 30309fd01d76a4778d6bafe35d58e0e92a38e5a6 mod_blocklist: Split long line [luacheck] diff -r 30309fd01d76 -r f0e35f4db9e0 plugins/mod_blocklist.lua --- a/plugins/mod_blocklist.lua Tue Mar 07 22:36:43 2017 +0100 +++ b/plugins/mod_blocklist.lua Thu Mar 09 00:59:32 2017 +0100 @@ -228,8 +228,11 @@ -- 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(); - (event.origin.log or module._log)("warn", "Client returned an error in response to notification from mod_%s: %s%s%s", module.name, condition, text and ": " or "", text or ""); + 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 ""); return true; end);