Mercurial > ~mikael > mcabber > hg
diff mcabber/src/jabglue.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 | bbf53cd43fbb |
children | f1a9ca2348e5 |
line wrap: on
line diff
--- a/mcabber/src/jabglue.c Sun Nov 12 10:51:43 2006 +0100 +++ b/mcabber/src/jabglue.c Sun Nov 12 12:12:38 2006 +0100 @@ -1512,7 +1512,6 @@ g_free(mbuf); // Send back an unavailable packet jb_setstatus(offline, roomjid, ""); - buddylist_build(); scr_DrawRoster(); return; } @@ -1682,7 +1681,6 @@ } else scr_LogPrint(LPRINT_LOGNORM, "MUC DBG: no rname!"); /* DBG */ - buddylist_build(); scr_DrawRoster(); } @@ -2087,10 +2085,8 @@ newbuddy = FALSE; } - if (newbuddy) { - buddylist_build(); + if (newbuddy) update_roster = TRUE; - } g_free(r); }