comparison mod_turncredentials/mod_turncredentials.lua @ 1326:afae347928d8

mod_turncredentials: Advertise the XEP-0215 feature (thanks Gryffus)
author Kim Alvefur <zash@zash.se>
date Fri, 28 Feb 2014 15:41:26 +0100
parents b21236b6b8d8
children 7dbde05b48a9
comparison
equal deleted inserted replaced
1325:b21236b6b8d8 1326:afae347928d8
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