aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_blocklist.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-04-01 22:18:44 +0200
committerKim Alvefur <zash@zash.se>2017-04-01 22:18:44 +0200
commit7485f6117d09f2f1fee4936008c662c12f8ad2f3 (patch)
treefa12bec73ff77891715910149a993b781ff57204 /plugins/mod_blocklist.lua
parent3a21f5ef657102cd253d852cea0b511b24126a11 (diff)
downloadprosody-7485f6117d09f2f1fee4936008c662c12f8ad2f3.tar.gz
prosody-7485f6117d09f2f1fee4936008c662c12f8ad2f3.zip
mod_blocklist: Use local variable [luacheck]
Diffstat (limited to 'plugins/mod_blocklist.lua')
-rw-r--r--plugins/mod_blocklist.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_blocklist.lua b/plugins/mod_blocklist.lua
index 6a555a06..ae24a2fc 100644
--- a/plugins/mod_blocklist.lua
+++ b/plugins/mod_blocklist.lua
@@ -229,7 +229,7 @@ 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();
+ 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 "");