Software / code / prosody
Comparison
plugins/mod_disco.lua @ 4985:0f72123ff513
mod_disco: Allow configurable name in disco identity (defaults to 'Prosody')
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 23 Jul 2012 12:25:33 +0100 |
| parent | 4337:a2ee8ab82dd9 |
| child | 5081:c0c060e450be |
comparison
equal
deleted
inserted
replaced
| 4984:724848dfde36 | 4985:0f72123ff513 |
|---|---|
| 30 break; | 30 break; |
| 31 end | 31 end |
| 32 end | 32 end |
| 33 end | 33 end |
| 34 | 34 |
| 35 module:add_identity("server", "im", "Prosody"); -- FIXME should be in the non-existing mod_router | 35 module:add_identity("server", "im", module:get_option_string("name", "Prosody")); -- FIXME should be in the non-existing mod_router |
| 36 module:add_feature("http://jabber.org/protocol/disco#info"); | 36 module:add_feature("http://jabber.org/protocol/disco#info"); |
| 37 module:add_feature("http://jabber.org/protocol/disco#items"); | 37 module:add_feature("http://jabber.org/protocol/disco#items"); |
| 38 | 38 |
| 39 -- Generate and cache disco result and caps hash | 39 -- Generate and cache disco result and caps hash |
| 40 local _cached_server_disco_info, _cached_server_caps_feature, _cached_server_caps_hash; | 40 local _cached_server_disco_info, _cached_server_caps_feature, _cached_server_caps_hash; |