Comparison

mod_turncredentials/mod_turncredentials.lua @ 1325:b21236b6b8d8

Backed out changeset 853a382c9bd6
author Kim Alvefur <zash@zash.se>
date Fri, 28 Feb 2014 15:37:55 +0100
parent 1324:853a382c9bd6
child 1326:afae347928d8
comparison
equal deleted inserted replaced
1324:853a382c9bd6 1325:b21236b6b8d8
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
20 module:hook("iq-get/host/urn:xmpp:extdisco:1:services", function(event) 18 module:hook("iq-get/host/urn:xmpp:extdisco:1:services", function(event)
21 local origin, stanza = event.origin, event.stanza; 19 local origin, stanza = event.origin, event.stanza;
22 if origin.type ~= "c2s" then 20 if origin.type ~= "c2s" then
23 return; 21 return;
24 end 22 end