Mercurial > pidgin
comparison src/status.c @ 11624:45d54425dc65
[gaim-migrate @ 13899]
Fix the bug where new buddies were showing up as groups sometimes, silence
a few g_log warnings, and make it so that if you add and then remove a user
on MSN without signing off and on in between the user is actually removed
from the server list
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 08 Oct 2005 16:08:51 +0000 |
parents | 03cd74ca2562 |
children | c7305c2d650b |
comparison
equal
deleted
inserted
replaced
11623:fd74e7b67682 | 11624:45d54425dc65 |
---|---|
617 { | 617 { |
618 time_t current_time = time(NULL); | 618 time_t current_time = time(NULL); |
619 const char *buddy_alias = gaim_buddy_get_alias(buddy); | 619 const char *buddy_alias = gaim_buddy_get_alias(buddy); |
620 char *tmp = NULL; | 620 char *tmp = NULL; |
621 | 621 |
622 if (!gaim_status_is_available(old_status) && | 622 if (((old_status == NULL) || !gaim_status_is_available(old_status)) && |
623 gaim_status_is_available(new_status)) | 623 gaim_status_is_available(new_status)) |
624 { | 624 { |
625 tmp = g_strdup_printf(_("%s came back"), buddy_alias); | 625 tmp = g_strdup_printf(_("%s came back"), buddy_alias); |
626 } | 626 } |
627 else if (gaim_status_is_available(old_status) && | 627 else if ((old_status != NULL) && gaim_status_is_available(old_status) && |
628 !gaim_status_is_available(new_status)) | 628 !gaim_status_is_available(new_status)) |
629 { | 629 { |
630 tmp = g_strdup_printf(_("%s went away"), buddy_alias); | 630 tmp = g_strdup_printf(_("%s went away"), buddy_alias); |
631 } | 631 } |
632 | 632 |