aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_adhoc.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-08-26 13:08:51 +0200
committerKim Alvefur <zash@zash.se>2015-08-26 13:08:51 +0200
commit33f35bae5816a63050a4825233acc3c630e0a1b2 (patch)
treeeb2a36d61c9e3ccdf47f80ef12b03f342c5495ed /plugins/mod_admin_adhoc.lua
parenta8102d93725ee954b43cca286a36cb9f7cfd4a32 (diff)
downloadprosody-33f35bae5816a63050a4825233acc3c630e0a1b2.tar.gz
prosody-33f35bae5816a63050a4825233acc3c630e0a1b2.zip
mod_admin_adhoc: Declare local variable, don't set a global [luacheck]
Diffstat (limited to 'plugins/mod_admin_adhoc.lua')
-rw-r--r--plugins/mod_admin_adhoc.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_admin_adhoc.lua b/plugins/mod_admin_adhoc.lua
index b6163559..fdbdf462 100644
--- a/plugins/mod_admin_adhoc.lua
+++ b/plugins/mod_admin_adhoc.lua
@@ -614,6 +614,7 @@ end, function(fields, err)
end);
local function send_to_online(message, server)
+ local sessions;
if server then
sessions = { [server] = hosts[server] };
else