changeset 4988:070181118a77

[gaim-migrate @ 5323] don't let buddies get "stuck" online if they sign on and off really quickly committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Thu, 03 Apr 2003 23:03:00 +0000
parents 1f92610b0772
children 0f8189301213
files src/list.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/list.c	Thu Apr 03 22:26:02 2003 +0000
+++ b/src/list.c	Thu Apr 03 23:03:00 2003 +0000
@@ -124,9 +124,10 @@
 
 void gaim_blist_update_buddy_presence(struct buddy *buddy, int presence) {
 	struct gaim_blist_ui_ops *ops = gaimbuddylist->ui_ops;
+
 	if (!buddy->present && presence)
 		buddy->present = 2;
-	else if (buddy->present != 2)
+	else if (buddy->present != 2 || !presence)
 		buddy->present = presence;
 	if (ops)
 		ops->update(gaimbuddylist, (GaimBlistNode*)buddy);