Mercurial > pidgin.yaz
comparison src/protocols/oscar/oscar.c @ 9995:792a7409f6b0
[gaim-migrate @ 10908]
Baby steps to the kitchen...
Look man, just because I have a goldfish around my neck doesn't mean
I'm crazy!
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 09 Sep 2004 04:08:50 +0000 |
parents | 7596ad640b56 |
children | c124bef68132 |
comparison
equal
deleted
inserted
replaced
9994:e651dbb88773 | 9995:792a7409f6b0 |
---|---|
5562 "away message before the login procedure " | 5562 "away message before the login procedure " |
5563 "completed. You remain in a \"present\" " | 5563 "completed. You remain in a \"present\" " |
5564 "state; try setting it again when you are " | 5564 "state; try setting it again when you are " |
5565 "fully connected.")); | 5565 "fully connected.")); |
5566 | 5566 |
5567 status_id = gaim_status_get_name(status); | |
5568 | |
5569 if (primitive == GAIM_STATUS_AVAILABLE) { | 5567 if (primitive == GAIM_STATUS_AVAILABLE) { |
5570 aim_locate_setprofile(od->sess, NULL, NULL, 0, NULL, "", 0); | 5568 aim_locate_setprofile(od->sess, NULL, NULL, 0, NULL, "", 0); |
5569 #if 0 | |
5570 /* Set an available message */ | |
5571 aim_locate_setprofile(od->sess, NULL, NULL, 0, NULL, "", 0); | |
5572 aim_srv_setavailmsg(od->sess, text); | |
5573 #endif | |
5571 return; | 5574 return; |
5572 } | 5575 } |
5576 | |
5577 /* | |
5578 * XXX - Using status_id below is definitely wrong. We want to get | |
5579 * the away message that the Gaim user just set. We probably want | |
5580 * to get a certain attribute from status->attr_values, but I don't | |
5581 * think any of that is implemented yet. | |
5582 * | |
5583 * Something like | |
5584 * text_html = gaim_status_get_attr_string(status, "message"); | |
5585 */ | |
5586 status_id = gaim_status_get_name(status); | |
5573 text_html = gaim_strdup_withhtml(status_id); | 5587 text_html = gaim_strdup_withhtml(status_id); |
5574 | |
5575 #if 0 | |
5576 /* Set an available message */ | |
5577 aim_locate_setprofile(od->sess, NULL, NULL, 0, NULL, "", 0); | |
5578 aim_srv_setavailmsg(od->sess, text); | |
5579 #endif | |
5580 | 5588 |
5581 charset = oscar_charset_check(text_html); | 5589 charset = oscar_charset_check(text_html); |
5582 if (charset == AIM_CHARSET_UNICODE) { | 5590 if (charset == AIM_CHARSET_UNICODE) { |
5583 msg = g_convert(text_html, strlen(text_html), "UCS-2BE", "UTF-8", NULL, &msglen, NULL); | 5591 msg = g_convert(text_html, strlen(text_html), "UCS-2BE", "UTF-8", NULL, &msglen, NULL); |
5584 aim_locate_setprofile(od->sess, NULL, NULL, 0, "unicode-2-0", msg, | 5592 aim_locate_setprofile(od->sess, NULL, NULL, 0, "unicode-2-0", msg, |