Mercurial > pidgin
comparison src/protocols/oscar/oscar.c @ 6037:4543f56f6fc3
[gaim-migrate @ 6487]
Fix setting away messages for AIM. Sean left off one _slightly_ important
line.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 05 Jul 2003 22:35:01 +0000 |
parents | 8c44020a958e |
children | 0c4d0c93c8c5 |
comparison
equal
deleted
inserted
replaced
6036:547ba881bc7e | 6037:4543f56f6fc3 |
---|---|
4486 if (!text) { | 4486 if (!text) { |
4487 aim_bos_setprofile(od->sess, od->conn, NULL, NULL, 0, NULL, "", 0, caps_aim); | 4487 aim_bos_setprofile(od->sess, od->conn, NULL, NULL, 0, NULL, "", 0, caps_aim); |
4488 return; | 4488 return; |
4489 } | 4489 } |
4490 | 4490 |
4491 text_html = strdup_withhtml(text); | |
4491 flags = oscar_encoding_check(text_html); | 4492 flags = oscar_encoding_check(text_html); |
4492 if (flags & AIM_IMFLAGS_UNICODE) { | 4493 if (flags & AIM_IMFLAGS_UNICODE) { |
4493 msg = g_convert(text_html, strlen(text_html), "UCS-2BE", "UTF-8", NULL, &msglen, NULL); | 4494 msg = g_convert(text_html, strlen(text_html), "UCS-2BE", "UTF-8", NULL, &msglen, NULL); |
4494 aim_bos_setprofile(od->sess, od->conn, NULL, NULL, 0, "unicode-2-0", msg, | 4495 aim_bos_setprofile(od->sess, od->conn, NULL, NULL, 0, "unicode-2-0", msg, |
4495 (msglen > od->rights.maxawaymsglen ? od->rights.maxawaymsglen : msglen), caps_aim); | 4496 (msglen > od->rights.maxawaymsglen ? od->rights.maxawaymsglen : msglen), caps_aim); |