Diff

mod_service_directories/mod_service_directories.lua @ 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
parent 904:7648ee2d59d1
child 1343:7dbde05b48a9
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