# HG changeset patch # User Christian Hammond # Date 1051774904 0 # Node ID b3a03b86b09b98b86e318a51d0d7bc86eeec322b # Parent 0e2cc63796189bcfbcf682364b65c9ee2098456c [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 diff -r 0e2cc6379618 -r b3a03b86b09b src/blist.c --- 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))