diff options
author | Kim Alvefur <zash@zash.se> | 2017-03-09 00:59:32 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-03-09 00:59:32 +0100 |
commit | b414eafb0bc86658cd7fbfee52c9170b79c76662 (patch) | |
tree | 845a4a7766d37988a7309638723ebc39d72c2f9d | |
parent | 014ceb2aa3d35b3b90e3d95d9a9256af09456503 (diff) | |
download | prosody-b414eafb0bc86658cd7fbfee52c9170b79c76662.tar.gz prosody-b414eafb0bc86658cd7fbfee52c9170b79c76662.zip |
mod_blocklist: Split long line [luacheck]
-rw-r--r-- | plugins/mod_blocklist.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/mod_blocklist.lua b/plugins/mod_blocklist.lua index 283d52fa..6a555a06 100644 --- a/plugins/mod_blocklist.lua +++ b/plugins/mod_blocklist.lua @@ -228,8 +228,11 @@ end); -- 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); |