changeset 5266:b3a03b86b09b

[gaim-migrate @ 5638] Now we check to see if the previous buddy status and the new status are different before doing any updating. This was causing events to be called way too often, and far too much updating. (I hope I didn't break flying buddies!) committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 01 May 2003 07:41:44 +0000
parents 0e2cc6379618
children 3cd24f012091
files src/blist.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/blist.c	Thu May 01 06:06:51 2003 +0000
+++ b/src/blist.c	Thu May 01 07:41:44 2003 +0000
@@ -134,7 +134,12 @@
 
 void  gaim_blist_update_buddy_status (struct buddy *buddy, int status)
 {
-	struct gaim_blist_ui_ops *ops = gaimbuddylist->ui_ops;
+	struct gaim_blist_ui_ops *ops;
+
+	if (buddy->uc == status)
+		return;
+
+	ops = gaimbuddylist->ui_ops;
 	buddy->uc = status;
 
 	if(!(status & UC_UNAVAILABLE))