comparison src/protocols/oscar/oscar.c @ 5068:b37d7d09ec83

[gaim-migrate @ 5419] logout icons committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Mon, 07 Apr 2003 23:17:27 +0000
parents ba713dabf3ef
children 74139d2562f5
comparison
equal deleted inserted replaced
5067:bc40b13c83a0 5068:b37d7d09ec83
5146 static void oscar_list_emblems(struct buddy *b, char **se, char **sw, char **nw, char **ne) 5146 static void oscar_list_emblems(struct buddy *b, char **se, char **sw, char **nw, char **ne)
5147 { 5147 {
5148 char *emblems[4] = {NULL,NULL,NULL,NULL}; 5148 char *emblems[4] = {NULL,NULL,NULL,NULL};
5149 int i = 0; 5149 int i = 0;
5150 5150
5151 if (b->present == 0) 5151 if (b->present == GAIM_BUDDY_OFFLINE)
5152 emblems[i++] = "offline"; 5152 emblems[i++] = "offline";
5153 5153
5154 if (b->name && (b->uc & 0xffff0000) && isdigit(b->name[0])) { 5154 if (b->name && (b->uc & 0xffff0000) && isdigit(b->name[0])) {
5155 int uc = b->uc >> 16; 5155 int uc = b->uc >> 16;
5156 if (uc & AIM_ICQ_STATE_INVISIBLE) 5156 if (uc & AIM_ICQ_STATE_INVISIBLE)
5510 m = g_list_append(m, pbm); 5510 m = g_list_append(m, pbm);
5511 #endif 5511 #endif
5512 } else { 5512 } else {
5513 struct buddy *b = gaim_find_buddy(gc->account, who); 5513 struct buddy *b = gaim_find_buddy(gc->account, who);
5514 5514
5515 if ((aim_sncmp(gc->username, who)) && b->present) { 5515 if ((aim_sncmp(gc->username, who)) && GAIM_BUDDY_IS_ONLINE(b)) {
5516 pbm = g_new0(struct proto_buddy_menu, 1); 5516 pbm = g_new0(struct proto_buddy_menu, 1);
5517 pbm->label = _("Direct IM"); 5517 pbm->label = _("Direct IM");
5518 pbm->callback = oscar_ask_direct_im; 5518 pbm->callback = oscar_ask_direct_im;
5519 pbm->gc = gc; 5519 pbm->gc = gc;
5520 m = g_list_append(m, pbm); 5520 m = g_list_append(m, pbm);