comparison src/server.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 be31fb7a719e
children 2ff05a24192b
comparison
equal deleted inserted replaced
5067:bc40b13c83a0 5068:b37d7d09ec83
891 891
892 gaim_blist_update_buddy_status(b, type); 892 gaim_blist_update_buddy_status(b, type);
893 893
894 894
895 if (loggedin) { 895 if (loggedin) {
896 if (!b->present == 1) { 896 if (!GAIM_BUDDY_IS_ONLINE(b)) {
897 struct gaim_conversation *c = gaim_find_conversation(b->name); 897 struct gaim_conversation *c = gaim_find_conversation(b->name);
898 if (c && (im_options & OPT_IM_LOGON)) { 898 if (c && (im_options & OPT_IM_LOGON)) {
899 char *tmp = g_strdup_printf(_("%s logged in."), gaim_get_buddy_alias(b)); 899 char *tmp = g_strdup_printf(_("%s logged in."), gaim_get_buddy_alias(b));
900 gaim_conversation_write(c, NULL, tmp, -1, 900 gaim_conversation_write(c, NULL, tmp, -1,
901 WFLAG_SYSTEM, time(NULL)); 901 WFLAG_SYSTEM, time(NULL));
915 gaim_pounce_execute(gc->account, b->name, GAIM_POUNCE_SIGNON); 915 gaim_pounce_execute(gc->account, b->name, GAIM_POUNCE_SIGNON);
916 plugin_event(event_buddy_signon, gc, b->name); 916 plugin_event(event_buddy_signon, gc, b->name);
917 system_log(log_signon, gc, b, OPT_LOG_BUDDY_SIGNON); 917 system_log(log_signon, gc, b, OPT_LOG_BUDDY_SIGNON);
918 } 918 }
919 } else { 919 } else {
920 if (b->present == 1) { 920 if (GAIM_BUDDY_IS_ONLINE(b)) {
921 struct gaim_conversation *c = gaim_find_conversation(b->name); 921 struct gaim_conversation *c = gaim_find_conversation(b->name);
922 if (c && (im_options & OPT_IM_LOGON)) { 922 if (c && (im_options & OPT_IM_LOGON)) {
923 char *tmp = g_strdup_printf(_("%s logged out."), gaim_get_buddy_alias(b)); 923 char *tmp = g_strdup_printf(_("%s logged out."), gaim_get_buddy_alias(b));
924 gaim_conversation_write(c, NULL, tmp, -1, 924 gaim_conversation_write(c, NULL, tmp, -1,
925 WFLAG_SYSTEM, time(NULL)); 925 WFLAG_SYSTEM, time(NULL));