changeset 121:3571b593f423

[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 <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 15 Apr 2000 23:52:33 +0000
parents 991d5f0c6c90
children 521db4bf5f28
files src/buddy.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);