Mercurial > pidgin.yaz
diff src/protocols/toc/toc.c @ 5971:0878caaef952
[gaim-migrate @ 6418]
I made ICQ people show up as ICQ people when signed on through TOC.
For some reason I changed the tabbing of stuff in an oscar file.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 29 Jun 2003 01:00:22 +0000 |
parents | 5fb6bd688a5b |
children | d8cd876e613e |
line wrap: on
line diff
--- a/src/protocols/toc/toc.c Sat Jun 28 17:15:23 2003 +0000 +++ b/src/protocols/toc/toc.c Sun Jun 29 01:00:22 2003 +0000 @@ -1267,6 +1267,15 @@ static const char *toc_list_icon(GaimAccount *a, struct buddy *b) { + if (!b || (b && b->name && b->name[0] == '+')) { + if (a != NULL && isdigit(*gaim_account_get_username(a))) + return "icq"; + else + return "aim"; + } + + if (b && b->name && isdigit(b->name[0])) + return "icq"; return "aim"; } @@ -1275,7 +1284,7 @@ char *emblems[4] = {NULL,NULL,NULL,NULL}; int i = 0; - if (b->present == GAIM_BUDDY_OFFLINE) { + if (!GAIM_BUDDY_IS_ONLINE(b)) { *se = "offline"; return; } else {