--- pidgin-2 10 orig libpurple protocols oscar oscar pidgin-2 10 libpu

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- pidgin-2.10.7.orig/libpurple/protocols/oscar/oscar.c
+++ pidgin-2.10.7/libpurple/protocols/oscar/oscar.c
@@ -3304,7 +3304,18 @@ oscar_send_im(PurpleConnection *gc, cons
tmp1 = oscar_util_format_string(message, name);
else
tmp1 = g_strdup(message);
-
+
+ // ====== Костыль для jasmine icq ==========
+ unsigned int i, msg_len = strlen(tmp1);
+ for (i = 0; i < msg_len; ++i) {
+ if (strncmp(&tmp1[i], "<br>", 4) == 0) {
+ memmove(tmp1 + i, tmp1 + i + 3, msg_len - i);
+ tmp1[i] = '\n';
+ }
+ }
+ tmp1[msg_len] = 0;
+ // =========================================
+
conn = peer_connection_find_by_type(od, name, OSCAR_CAPABILITY_DIRECTIM);
if ((conn != NULL) && (conn->ready))
{
--- pidgin-2.10.7.orig/libpurple/protocols/oscar/family_icbm.c
+++ pidgin-2.10.7/libpurple/protocols/oscar/family_icbm.c
@@ -1991,6 +1991,8 @@ int icq_im_xstatus_request(OscarData *od
int icq_relay_xstatus(OscarData *od, const char *sn, const guchar *cookie)
{
+ return -EINVAL; // xstatus не нужен
+
FlapConnection *conn;
ByteStream bs;
aim_snacid_t snacid;