diff options
author | Kim Alvefur <zash@zash.se> | 2015-08-26 13:08:51 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-08-26 13:08:51 +0200 |
commit | 88f902f1e981d9230d9bb9597fb3ef58c488f1fc (patch) | |
tree | eb2a36d61c9e3ccdf47f80ef12b03f342c5495ed /plugins/mod_admin_adhoc.lua | |
parent | 4924ad4d8e917d704f510661071ce44ace300948 (diff) | |
download | prosody-88f902f1e981d9230d9bb9597fb3ef58c488f1fc.tar.gz prosody-88f902f1e981d9230d9bb9597fb3ef58c488f1fc.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.lua | 1 |
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 |