Use xmpp_send_raw_string instead of xmpp_send_raw

This commit is contained in:
James Booth
2016-03-26 16:44:02 +00:00
parent d0397f3da5
commit 7b34f72007
6 changed files with 13 additions and 13 deletions

View File

@@ -842,8 +842,8 @@ _send_message_stanza(xmpp_conn_t *const conn, xmpp_stanza_t *const stanza)
char *plugin_text = plugins_on_message_stanza_send(text);
if (plugin_text) {
xmpp_send_raw(conn, plugin_text, strlen(plugin_text));
xmpp_send_raw_string(conn, "%s", plugin_text);
} else {
xmpp_send_raw(conn, text, text_size);
xmpp_send_raw_string(conn, "%s", text);
}
}