Mercurial > ~mikael > mcabber > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
1009:c112423ac012 | 1010:54405d09b15a |
---|---|
146 if ((!is_groupchat) && !(message_flags & HBB_PREFIX_ERR) && | 146 if ((!is_groupchat) && !(message_flags & HBB_PREFIX_ERR) && |
147 settings_opt_get_int("beep_on_message")) { | 147 settings_opt_get_int("beep_on_message")) { |
148 scr_Beep(); | 148 scr_Beep(); |
149 } | 149 } |
150 | 150 |
151 // We need to rebuild the list if the sender is unknown or | 151 // We need to update the roster if the sender is unknown or |
152 // if the sender is offline/invisible and hide_offline_buddies is set | 152 // if the sender is offline/invisible and hide_offline_buddies is set |
153 if (new_guy || | 153 if (new_guy || |
154 (buddy_getstatus(roster_usr->data, NULL) == offline && | 154 (buddy_getstatus(roster_usr->data, NULL) == offline && |
155 buddylist_get_hide_offline_buddies())) | 155 buddylist_get_hide_offline_buddies())) |
156 { | 156 { |
157 buddylist_build(); | |
158 update_roster = TRUE; | 157 update_roster = TRUE; |
159 } | 158 } |
160 | 159 |
161 g_free(bmsg); | 160 g_free(bmsg); |
162 g_free(mmsg); | 161 g_free(mmsg); |