[telepathy-gabble/master] util.c: lm_message_build: properly set the namespace on the node

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Fri Sep 11 07:56:13 PDT 2009


---
 src/util.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/util.c b/src/util.c
index 763c4ce..0d044b9 100644
--- a/src/util.c
+++ b/src/util.c
@@ -277,7 +277,10 @@ lm_message_node_add_build_va (LmMessageNode *node, guint spec, va_list ap)
 
             g_return_if_fail (key != NULL);
             g_return_if_fail (value != NULL);
-            lm_message_node_set_attribute (stack->data, key, value);
+            if (!tp_strdiff (key, "xmlns"))
+              wocky_xmpp_node_set_ns (stack->data, value);
+            else
+              lm_message_node_set_attribute (stack->data, key, value);
           }
           break;
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list