Mercurial > ~mikael > mcabber > hg
diff mcabber/src/roster.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 | f47e312560af |
children | ebbde723614b |
line wrap: on
line diff
--- a/mcabber/src/roster.c Sun Nov 12 10:51:43 2006 +0100 +++ b/mcabber/src/roster.c Sun Nov 12 12:12:38 2006 +0100 @@ -615,7 +615,7 @@ // ROSTER_FLAG_MSG should already be set... } - if (buddylist && new_roster_item) + if (buddylist && (new_roster_item || !g_list_find(buddylist, roster_usr))) buddylist_build(); }