aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_adhoc.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-08-26 13:17:37 +0200
committerKim Alvefur <zash@zash.se>2015-08-26 13:17:37 +0200
commit0bb135486abae381614dc0547b55ba08cfdc8ac3 (patch)
tree9dc703a47bdb80713dc5c5926a4215a12b0337fe /plugins/mod_admin_adhoc.lua
parent4625bd8f510121530cd4166338d39359ac739b3d (diff)
parent345a2e09f6a7fedd1037d7183548e60c6302719a (diff)
downloadprosody-0bb135486abae381614dc0547b55ba08cfdc8ac3.tar.gz
prosody-0bb135486abae381614dc0547b55ba08cfdc8ac3.zip
Merge 0.10->trunk
Diffstat (limited to 'plugins/mod_admin_adhoc.lua')
-rw-r--r--plugins/mod_admin_adhoc.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_admin_adhoc.lua b/plugins/mod_admin_adhoc.lua
index c21a2060..fdbdf462 100644
--- a/plugins/mod_admin_adhoc.lua
+++ b/plugins/mod_admin_adhoc.lua
@@ -30,6 +30,7 @@ local modulemanager = require "core.modulemanager";
local core_post_stanza = prosody.core_post_stanza;
local adhoc_simple = require "util.adhoc".new_simple_form;
local adhoc_initial = require "util.adhoc".new_initial_data_form;
+local set = require"util.set";
module:depends("adhoc");
local adhoc_new = module:require "adhoc".new;
@@ -613,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