Software /
code /
prosody-modules
Comparison
mod_turncredentials/mod_turncredentials.lua @ 1324:853a382c9bd6
mod_turncredentials: Advertise the XEP-0215 feature (thanks Gryffus)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 28 Feb 2014 15:36:06 +0100 |
parent | 1171:a18effacd384 |
child | 1325:b21236b6b8d8 |
comparison
equal
deleted
inserted
replaced
1323:c84ff82658cb | 1324:853a382c9bd6 |
---|---|
13 if not (secret and host) then | 13 if not (secret and host) then |
14 module:log("error", "turncredentials not configured"); | 14 module:log("error", "turncredentials not configured"); |
15 return; | 15 return; |
16 end | 16 end |
17 | 17 |
18 module:add_feature("urn:xmpp:extdisco:1"); | |
19 | |
18 module:hook("iq-get/host/urn:xmpp:extdisco:1:services", function(event) | 20 module:hook("iq-get/host/urn:xmpp:extdisco:1:services", function(event) |
19 local origin, stanza = event.origin, event.stanza; | 21 local origin, stanza = event.origin, event.stanza; |
20 if origin.type ~= "c2s" then | 22 if origin.type ~= "c2s" then |
21 return; | 23 return; |
22 end | 24 end |