1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Merge branch 'master' into osx-functional

This commit is contained in:
James Booth 2016-03-26 16:45:56 +00:00
commit 07e27419ad
6 changed files with 13 additions and 13 deletions

View File

@ -490,8 +490,8 @@ _send_iq_stanza(xmpp_conn_t *const conn, xmpp_stanza_t *const stanza)
char *plugin_text = plugins_on_iq_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);
}
}

View File

@ -486,7 +486,7 @@ jabber_send_stanza(const char *const stanza)
if (jabber_conn.conn_status != JABBER_CONNECTED) {
return FALSE;
} else {
xmpp_send_raw(jabber_conn.conn, stanza, strlen(stanza));
xmpp_send_raw_string(jabber_conn.conn, "%s", stanza);
return TRUE;
}
}

View File

@ -1846,8 +1846,8 @@ _send_iq_stanza(xmpp_conn_t *const conn, xmpp_stanza_t *const stanza)
char *plugin_text = plugins_on_iq_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);
}
}

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);
}
}

View File

@ -825,9 +825,9 @@ _send_presence_stanza(xmpp_conn_t *const conn, xmpp_stanza_t *const stanza)
char *plugin_text = plugins_on_presence_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);
}
}
@ -840,8 +840,8 @@ _send_iq_stanza(xmpp_conn_t *const conn, xmpp_stanza_t *const stanza)
char *plugin_text = plugins_on_iq_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);
}
}

View File

@ -371,8 +371,8 @@ _send_iq_stanza(xmpp_conn_t *const conn, xmpp_stanza_t *const stanza)
char *plugin_text = plugins_on_iq_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);
}
}