Mercurial > ~mikael > mcabber > hg
diff mcabber/src/hooks.c @ 1010:54405d09b15a
Add a call to buddylist_build()
Sometimes buddylist_build() isn't called when a line is added to a hidden
buffer (for ex. when receiving an IQ:version). Dealing with this in
roster_msg_setflag() should fix it, and may save us a few useless calls...
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 12 Nov 2006 12:12:38 +0100 |
parents | 303408ef5e5d |
children | 6eb1efea75d0 |
line wrap: on
line diff
--- a/mcabber/src/hooks.c Sun Nov 12 10:51:43 2006 +0100 +++ b/mcabber/src/hooks.c Sun Nov 12 12:12:38 2006 +0100 @@ -148,13 +148,12 @@ scr_Beep(); } - // We need to rebuild the list if the sender is unknown or + // We need to update the roster if the sender is unknown or // if the sender is offline/invisible and hide_offline_buddies is set if (new_guy || (buddy_getstatus(roster_usr->data, NULL) == offline && buddylist_get_hide_offline_buddies())) { - buddylist_build(); update_roster = TRUE; }