Mercurial > pidgin.yaz
comparison src/status.c @ 12668:57462d6542ea
[gaim-migrate @ 15011]
Fix SF Bug #1391106
When logging to the system log, we made no distinction between signing off/on and going away / coming back.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 29 Dec 2005 00:44:11 +0000 |
parents | 3169cd6727ad |
children | eda1572c788b |
comparison
equal
deleted
inserted
replaced
12667:a99a0cc67713 | 12668:57462d6542ea |
---|---|
614 { | 614 { |
615 time_t current_time = time(NULL); | 615 time_t current_time = time(NULL); |
616 const char *buddy_alias = gaim_buddy_get_alias(buddy); | 616 const char *buddy_alias = gaim_buddy_get_alias(buddy); |
617 char *tmp = NULL; | 617 char *tmp = NULL; |
618 | 618 |
619 if (((old_status == NULL) || !gaim_status_is_available(old_status)) && | 619 if (gaim_status_is_available(new_status)) |
620 gaim_status_is_available(new_status)) | 620 { |
621 { | 621 if (((old_status == NULL) || !gaim_status_is_online(old_status))) |
622 tmp = g_strdup_printf(_("%s came back"), buddy_alias); | 622 { |
623 tmp = g_strdup_printf(_("%s signed on"), buddy_alias); | |
624 } | |
625 else if (!gaim_status_is_available(old_status)) | |
626 { | |
627 tmp = g_strdup_printf(_("%s came back"), buddy_alias); | |
628 } | |
623 } | 629 } |
624 else if ((old_status != NULL) && gaim_status_is_available(old_status) && | 630 else if ((old_status != NULL) && gaim_status_is_available(old_status)) |
625 !gaim_status_is_available(new_status)) | 631 { |
626 { | 632 if (!gaim_status_is_online(new_status)) |
627 tmp = g_strdup_printf(_("%s went away"), buddy_alias); | 633 { |
634 tmp = g_strdup_printf(_("%s signed off"), buddy_alias); | |
635 } | |
636 else if (!gaim_status_is_available(new_status)) | |
637 { | |
638 tmp = g_strdup_printf(_("%s went away"), buddy_alias); | |
639 } | |
628 } | 640 } |
629 | 641 |
630 if (tmp != NULL) | 642 if (tmp != NULL) |
631 { | 643 { |
632 GaimLog *log = gaim_account_get_log(buddy->account); | 644 GaimLog *log = gaim_account_get_log(buddy->account); |