| 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)); |