# HG changeset patch # User Kim Alvefur # Date 1558625217 -7200 # Node ID ec1d25ae6206d3c6515392689a810e7cc3953854 # Parent e302537a0e4e96bf14e2ad5431e02bbd5f3f23ca mod_extdisco: Reuse xmlns variable diff -r e302537a0e4e -r ec1d25ae6206 mod_extdisco/mod_extdisco.lua --- a/mod_extdisco/mod_extdisco.lua Thu May 23 09:15:17 2019 +0300 +++ b/mod_extdisco/mod_extdisco.lua Thu May 23 17:26:57 2019 +0200 @@ -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):tag('services', { xmlns = 'urn:xmpp:extdisco:1' }); + local reply = st.reply(stanza):tag("services", { xmlns = xmlns_extdisco }); for host, service_info in pairs(services) do if not(service_type) or service_info.type == service_type then reply:tag("service", {