summaryrefslogtreecommitdiff
path: root/src/rexmpp_console.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rexmpp_console.c')
-rw-r--r--src/rexmpp_console.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rexmpp_console.c b/src/rexmpp_console.c
index b44e045..ecc1338 100644
--- a/src/rexmpp_console.c
+++ b/src/rexmpp_console.c
@@ -315,6 +315,7 @@ void rexmpp_console_feed (rexmpp_t *s, char *str, ssize_t str_len) {
}
msg_text = jid_str + strlen(jid_str) + 1;
xmlNodePtr msg = rexmpp_xml_add_id(s, xmlNewNode(NULL, "message"));
+ xmlNewNs(msg, "jabber:client", NULL);
xmlNewProp(msg, "to", jid.full);
xmlNewProp(msg, "type", "chat");
xmlNewTextChild(msg, NULL, "body", msg_text);
@@ -349,6 +350,7 @@ void rexmpp_console_feed (rexmpp_t *s, char *str, ssize_t str_len) {
free(b64);
xmlNodePtr msg = rexmpp_xml_add_id(s, xmlNewNode(NULL, "message"));
+ xmlNewNs(msg, "jabber:client", NULL);
xmlNewProp(msg, "to", jid.full);
xmlNewProp(msg, "type", "chat");
xmlAddChild(msg, openpgp);
@@ -370,6 +372,7 @@ void rexmpp_console_feed (rexmpp_t *s, char *str, ssize_t str_len) {
}
msg_text = jid_str + strlen(jid_str) + 1;
xmlNodePtr msg = rexmpp_xml_add_id(s, xmlNewNode(NULL, "message"));
+ xmlNewNs(msg, "jabber:client", NULL);
xmlNewProp(msg, "to", jid.full);
xmlNewProp(msg, "type", "groupchat");
xmlNewTextChild(msg, NULL, "body", msg_text);