about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-07-22 20:35:43 +0100
committerJames Booth <boothj5@gmail.com>2013-07-22 20:35:43 +0100
commita64b293878ed47c8632fd0b7928fdcb070ddea96 (patch)
tree013d8b96b5973e124e00984d66cb918e550b539e /src/xmpp
parentcbe3c41abedf5ffa48761009af4ab426eb850a38 (diff)
downloadprofani-tty-a64b293878ed47c8632fd0b7928fdcb070ddea96.tar.gz
Removed escaping XML as handled by libstrophe
https://github.com/metajack/libstrophe/commit/4ad21c9283ceae9109ea71860aa27814222c9ee3
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/stanza.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/xmpp/stanza.c b/src/xmpp/stanza.c
index d2de44f0..2e2f9858 100644
--- a/src/xmpp/stanza.c
+++ b/src/xmpp/stanza.c
@@ -58,8 +58,6 @@ stanza_create_message(xmpp_ctx_t *ctx, const char * const recipient,
     const char * const type, const char * const message,
     const char * const state, const char * const id)
 {
-    char *encoded_xml = encode_xml(message);
-
     xmpp_stanza_t *msg, *body, *text;
 
     msg = xmpp_stanza_new(ctx);
@@ -74,7 +72,7 @@ stanza_create_message(xmpp_ctx_t *ctx, const char * const recipient,
     xmpp_stanza_set_name(body, STANZA_NAME_BODY);
 
     text = xmpp_stanza_new(ctx);
-    xmpp_stanza_set_text(text, encoded_xml);
+    xmpp_stanza_set_text(text, message);
     xmpp_stanza_add_child(body, text);
     xmpp_stanza_release(text);
     xmpp_stanza_add_child(msg, body);
@@ -88,8 +86,6 @@ stanza_create_message(xmpp_ctx_t *ctx, const char * const recipient,
 	xmpp_stanza_release(chat_state);
     }
 
-    g_free(encoded_xml);
-
     return msg;
 }