comparison src/protocols/irc/irc.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 ed2a6196ccab
children 381da05cb5ed
comparison
equal deleted inserted replaced
5067:bc40b13c83a0 5068:b37d7d09ec83
598 char *x, *l; 598 char *x, *l;
599 x = strstr(id->str->str, tmp); 599 x = strstr(id->str->str, tmp);
600 l = x + strlen(b->name); 600 l = x + strlen(b->name);
601 if (x && (*l != ' ' && *l != 0)) 601 if (x && (*l != ' ' && *l != 0))
602 x = 0; 602 x = 0;
603 if (!b->present && x) 603 if (!GAIM_BUDDY_IS_ONLINE(b) && x)
604 serv_got_update(gc, b->name, 1, 0, 0, 0, 0); 604 serv_got_update(gc, b->name, 1, 0, 0, 0, 0);
605 else if (b->present && !x) 605 else if (GAIM_BUDDY_IS_ONLINE(b) && !x)
606 serv_got_update(gc, b->name, 0, 0, 0, 0, 0); 606 serv_got_update(gc, b->name, 0, 0, 0, 0, 0);
607 g_free(tmp); 607 g_free(tmp);
608 } 608 }
609 } 609 }
610 } 610 }
2456 return "irc"; 2456 return "irc";
2457 } 2457 }
2458 2458
2459 static void irc_list_emblems(struct buddy *b, char **se, char **sw, char **nw, char **ne) 2459 static void irc_list_emblems(struct buddy *b, char **se, char **sw, char **nw, char **ne)
2460 { 2460 {
2461 if (b->present == 0) 2461 if (b->present == GAIM_BUDDY_OFFLINE)
2462 *se = "offline"; 2462 *se = "offline";
2463 } 2463 }
2464 2464
2465 static int 2465 static int
2466 getlocalip(char *ip) /* Thanks, libfaim */ 2466 getlocalip(char *ip) /* Thanks, libfaim */