# HG changeset patch # User Alexey Bobyr # Date 1558592117 -10800 # Node ID e302537a0e4e96bf14e2ad5431e02bbd5f3f23ca # Parent 013ef96a6d4d1a4c1a3000d6eb7322eca6f1a434 xep-0215-0.6 requires service to be wrapped in services tag. diff -r 013ef96a6d4d -r e302537a0e4e mod_extdisco/mod_extdisco.lua --- a/mod_extdisco/mod_extdisco.lua Sat May 18 16:19:03 2019 +0200 +++ b/mod_extdisco/mod_extdisco.lua Thu May 23 09:15:17 2019 +0300 @@ -10,7 +10,7 @@ local origin, stanza = event.origin, event.stanza; local service = stanza:get_child("service", xmlns_extdisco); local service_type = service and service.attr.type; - local reply = st.reply(stanza); + local reply = st.reply(stanza):tag('services', { xmlns = 'urn:xmpp:extdisco:1' }); for host, service_info in pairs(services) do if not(service_type) or service_info.type == service_type then reply:tag("service", {