Mercurial > prosody-modules
comparison 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 |
parents | 7648ee2d59d1 |
children | 7dbde05b48a9 |
comparison
equal
deleted
inserted
replaced
1279:2118a2eeb1d5 | 1280:42625801d15a |
---|---|
24 local contact_features = {}; | 24 local contact_features = {}; |
25 local contact_vcards = {}; | 25 local contact_vcards = {}; |
26 | 26 |
27 -- Advertise in disco | 27 -- Advertise in disco |
28 | 28 |
29 module:add_identity("server", "directory", "Prosody"); | 29 module:add_identity("server", "directory", module:get_option_string("name", "Prosody")); |
30 module:add_feature("urn:xmpp:server-presence"); | 30 module:add_feature("urn:xmpp:server-presence"); |
31 | 31 |
32 -- Handle subscriptions | 32 -- Handle subscriptions |
33 | 33 |
34 module:hook("presence/host", function(event) -- inbound presence to the host | 34 module:hook("presence/host", function(event) -- inbound presence to the host |