Changeset

3603:ec1d25ae6206

mod_extdisco: Reuse xmlns variable
author Kim Alvefur <zash@zash.se>
date Thu, 23 May 2019 17:26:57 +0200
parents 3602:e302537a0e4e
children 3604:60df58c5f7dd
files mod_extdisco/mod_extdisco.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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", {