changeset 1280:42625801d15a

mod_service_directories: Respect the 'name' option (Thanks Thomas)
author Kim Alvefur <zash@zash.se>
date Sun, 19 Jan 2014 19:22:12 +0100
parents 2118a2eeb1d5
children f78661861e98
files mod_service_directories/mod_service_directories.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_service_directories/mod_service_directories.lua	Sat Jan 18 21:16:27 2014 +0100
+++ b/mod_service_directories/mod_service_directories.lua	Sun Jan 19 19:22:12 2014 +0100
@@ -26,7 +26,7 @@
 
 -- Advertise in disco
 
-module:add_identity("server", "directory", "Prosody");
+module:add_identity("server", "directory", module:get_option_string("name", "Prosody"));
 module:add_feature("urn:xmpp:server-presence");
 
 -- Handle subscriptions