aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-08-05 17:18:35 +0100
committerMatthew Wild <mwild1@gmail.com>2012-08-05 17:18:35 +0100
commite1cf1cf3880e871b4d28c6dc18d97eefa0122f32 (patch)
tree2bc3c28f6b3a561701f8e44d2b42add48edbb793 /core
parent9abda66396832482b9b1a1c16038485934ad5988 (diff)
downloadprosody-e1cf1cf3880e871b4d28c6dc18d97eefa0122f32.tar.gz
prosody-e1cf1cf3880e871b4d28c6dc18d97eefa0122f32.zip
hostmanager, mod_disco: Show optional 'name' option from the config in disco#items queries (fixes use-case in #292) (thanks diSabler, mva)
Diffstat (limited to 'core')
-rw-r--r--core/hostmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/hostmanager.lua b/core/hostmanager.lua
index 66275d96..3c90dbb9 100644
--- a/core/hostmanager.lua
+++ b/core/hostmanager.lua
@@ -84,7 +84,7 @@ function activate(host, host_config)
end
hosts[host] = host_session;
if not host:match("[@/]") then
- disco_items:set(host:match("%.(.*)") or "*", host, true);
+ disco_items:set(host:match("%.(.*)") or "*", host, host_config.core.name or true);
end
for option_name in pairs(host_config.core) do
if option_name:match("_ports$") or option_name:match("_interface$") then