Fix disco issue reported by Sam Whited
authorMikael Berthe <mikael@lilotux.net>
Sat, 28 Aug 2021 23:02:24 +0200
changeset 2360 fef9f1a7d2aa
parent 2359 f35b17fd1e73
child 2361 9f5b3d53f97f
Fix disco issue reported by Sam Whited IQ namespace is incorrect when responding to a disco#items request on the commands node.
mcabber/mcabber/xmpp_iq.c
--- a/mcabber/mcabber/xmpp_iq.c	Sat Aug 28 22:53:44 2021 +0200
+++ b/mcabber/mcabber/xmpp_iq.c	Sat Aug 28 23:02:24 2021 +0200
@@ -173,7 +173,7 @@
 
   iq = lm_message_new_iq_from_query(m, LM_MESSAGE_SUB_TYPE_RESULT);
   query = lm_message_node_add_child(iq->node, "query", NULL);
-  lm_message_node_set_attribute(query, "xmlns", NS_COMMANDS);
+  lm_message_node_set_attribute(query, "xmlns", NS_DISCO_ITEMS);
   node = lm_message_node_get_attribute
           (lm_message_node_get_child(m->node, "query"),
            "node");