# HG changeset patch # User Eric Warmenhoven # Date 955842753 0 # Node ID 3571b593f4239b80a085c7004a3a293c5415228f # Parent 991d5f0c6c90b6ded367de0984606d782e21331f [gaim-migrate @ 131] If buddy signs off, then signs on again before they get erased, it wouldn't alert properly. Now it does. committer: Tailor Script diff -r 991d5f0c6c90 -r 3571b593f423 src/buddy.c --- a/src/buddy.c Sat Apr 15 23:29:33 2000 +0000 +++ b/src/buddy.c Sat Apr 15 23:52:33 2000 +0000 @@ -1386,7 +1386,9 @@ - if (!GTK_WIDGET_VISIBLE(b->item)) { + /* this check should also depend on whether they left, + * and signed on again before they got erased */ + if (!GTK_WIDGET_VISIBLE(b->item) || b->present == 1) { #ifdef GAIM_PLUGINS GList *c = callbacks; struct gaim_callback *g; @@ -1403,6 +1405,7 @@ #endif play_sound(BUDDY_ARRIVE); + b->present = 2; who = g_malloc(sizeof(b->name) + 10); strcpy(who, b->name);