mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Use xmpp_send_raw_string instead of xmpp_send_raw
This commit is contained in:
parent
d0397f3da5
commit
7b34f72007
@ -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);
|
char *plugin_text = plugins_on_iq_stanza_send(text);
|
||||||
if (plugin_text) {
|
if (plugin_text) {
|
||||||
xmpp_send_raw(conn, plugin_text, strlen(plugin_text));
|
xmpp_send_raw_string(conn, "%s", plugin_text);
|
||||||
} else {
|
} else {
|
||||||
xmpp_send_raw(conn, text, text_size);
|
xmpp_send_raw_string(conn, "%s", text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -486,7 +486,7 @@ jabber_send_stanza(const char *const stanza)
|
|||||||
if (jabber_conn.conn_status != JABBER_CONNECTED) {
|
if (jabber_conn.conn_status != JABBER_CONNECTED) {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
} else {
|
} else {
|
||||||
xmpp_send_raw(jabber_conn.conn, stanza, strlen(stanza));
|
xmpp_send_raw_string(jabber_conn.conn, "%s", stanza);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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);
|
char *plugin_text = plugins_on_iq_stanza_send(text);
|
||||||
if (plugin_text) {
|
if (plugin_text) {
|
||||||
xmpp_send_raw(conn, plugin_text, strlen(plugin_text));
|
xmpp_send_raw_string(conn, "%s", plugin_text);
|
||||||
} else {
|
} else {
|
||||||
xmpp_send_raw(conn, text, text_size);
|
xmpp_send_raw_string(conn, "%s", text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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);
|
char *plugin_text = plugins_on_message_stanza_send(text);
|
||||||
if (plugin_text) {
|
if (plugin_text) {
|
||||||
xmpp_send_raw(conn, plugin_text, strlen(plugin_text));
|
xmpp_send_raw_string(conn, "%s", plugin_text);
|
||||||
} else {
|
} else {
|
||||||
xmpp_send_raw(conn, text, text_size);
|
xmpp_send_raw_string(conn, "%s", text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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);
|
char *plugin_text = plugins_on_presence_stanza_send(text);
|
||||||
if (plugin_text) {
|
if (plugin_text) {
|
||||||
xmpp_send_raw(conn, plugin_text, strlen(plugin_text));
|
xmpp_send_raw_string(conn, "%s", plugin_text);
|
||||||
} else {
|
} 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);
|
char *plugin_text = plugins_on_iq_stanza_send(text);
|
||||||
if (plugin_text) {
|
if (plugin_text) {
|
||||||
xmpp_send_raw(conn, plugin_text, strlen(plugin_text));
|
xmpp_send_raw_string(conn, "%s", plugin_text);
|
||||||
} else {
|
} else {
|
||||||
xmpp_send_raw(conn, text, text_size);
|
xmpp_send_raw_string(conn, "%s", text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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);
|
char *plugin_text = plugins_on_iq_stanza_send(text);
|
||||||
if (plugin_text) {
|
if (plugin_text) {
|
||||||
xmpp_send_raw(conn, plugin_text, strlen(plugin_text));
|
xmpp_send_raw_string(conn, "%s", plugin_text);
|
||||||
} else {
|
} else {
|
||||||
xmpp_send_raw(conn, text, text_size);
|
xmpp_send_raw_string(conn, "%s", text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user