comparison 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
comparison
equal deleted inserted replaced
5970:730015652f4d 5971:0878caaef952
1265 sflap_send(gc, "", 0, TYPE_KEEPALIVE); 1265 sflap_send(gc, "", 0, TYPE_KEEPALIVE);
1266 } 1266 }
1267 1267
1268 static const char *toc_list_icon(GaimAccount *a, struct buddy *b) 1268 static const char *toc_list_icon(GaimAccount *a, struct buddy *b)
1269 { 1269 {
1270 if (!b || (b && b->name && b->name[0] == '+')) {
1271 if (a != NULL && isdigit(*gaim_account_get_username(a)))
1272 return "icq";
1273 else
1274 return "aim";
1275 }
1276
1277 if (b && b->name && isdigit(b->name[0]))
1278 return "icq";
1270 return "aim"; 1279 return "aim";
1271 } 1280 }
1272 1281
1273 static void toc_list_emblems(struct buddy *b, char **se, char **sw, char **nw, char **ne) 1282 static void toc_list_emblems(struct buddy *b, char **se, char **sw, char **nw, char **ne)
1274 { 1283 {
1275 char *emblems[4] = {NULL,NULL,NULL,NULL}; 1284 char *emblems[4] = {NULL,NULL,NULL,NULL};
1276 int i = 0; 1285 int i = 0;
1277 1286
1278 if (b->present == GAIM_BUDDY_OFFLINE) { 1287 if (!GAIM_BUDDY_IS_ONLINE(b)) {
1279 *se = "offline"; 1288 *se = "offline";
1280 return; 1289 return;
1281 } else { 1290 } else {
1282 if (b->uc & UC_UNAVAILABLE) 1291 if (b->uc & UC_UNAVAILABLE)
1283 emblems[i++] = "away"; 1292 emblems[i++] = "away";