Mercurial > pidgin.yaz
comparison src/protocols/oscar/oscar.c @ 7038:1ab06a680ac2
[gaim-migrate @ 7601]
We voted against this, kind of.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 29 Sep 2003 23:46:28 +0000 |
parents | b599731f486d |
children | 237ad253dd34 |
comparison
equal
deleted
inserted
replaced
7037:b599731f486d | 7038:1ab06a680ac2 |
---|---|
5444 gchar *ret = NULL; | 5444 gchar *ret = NULL; |
5445 | 5445 |
5446 if ((b->uc & UC_UNAVAILABLE) || (((b->uc & 0xffff0000) >> 16) & AIM_ICQ_STATE_CHAT)) { | 5446 if ((b->uc & UC_UNAVAILABLE) || (((b->uc & 0xffff0000) >> 16) & AIM_ICQ_STATE_CHAT)) { |
5447 if (isdigit(b->name[0])) | 5447 if (isdigit(b->name[0])) |
5448 ret = gaim_icq_status((b->uc & 0xffff0000) >> 16); | 5448 ret = gaim_icq_status((b->uc & 0xffff0000) >> 16); |
5449 else { | 5449 else |
5450 aim_userinfo_t *userinfo = aim_locate_finduserinfo(b->name); | 5450 ret = g_strdup(_("Away")); |
5451 if ((userinfo != NULL) && (userinfo->flags & AIM_FLAG_AWAY) && (userinfo->away_len > 0) && (userinfo->away != NULL) && (userinfo->away_encoding != NULL)) { | |
5452 gchar *away_utf8 = oscar_encoding_to_utf8(userinfo->away_encoding, userinfo->away, userinfo->away_len); | |
5453 if (away_utf8 != NULL) { | |
5454 ret = strip_html(away_utf8); | |
5455 g_free(away_utf8); | |
5456 } else | |
5457 ret = g_strdup(_("Away")); | |
5458 } else | |
5459 ret = g_strdup(_("Away")); | |
5460 } | |
5461 } else if (GAIM_BUDDY_IS_ONLINE(b)) { | 5451 } else if (GAIM_BUDDY_IS_ONLINE(b)) { |
5462 struct buddyinfo *bi = g_hash_table_lookup(od->buddyinfo, normalize(b->name)); | 5452 struct buddyinfo *bi = g_hash_table_lookup(od->buddyinfo, normalize(b->name)); |
5463 if (bi->availmsg) | 5453 if (bi->availmsg) |
5464 ret = g_markup_escape_text(bi->availmsg, strlen(bi->availmsg)); | 5454 ret = g_markup_escape_text(bi->availmsg, strlen(bi->availmsg)); |
5465 } else { | 5455 } else { |