aboutsummaryrefslogtreecommitdiffstats
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
commit88f902f1e981d9230d9bb9597fb3ef58c488f1fc (patch)
treeeb2a36d61c9e3ccdf47f80ef12b03f342c5495ed
parent4924ad4d8e917d704f510661071ce44ace300948 (diff)
downloadprosody-88f902f1e981d9230d9bb9597fb3ef58c488f1fc.tar.gz
prosody-88f902f1e981d9230d9bb9597fb3ef58c488f1fc.zip
mod_admin_adhoc: Declare local variable, don't set a global [luacheck]
-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