comparison mcabber/src/hooks.c @ 1311:0dda8238af21

Implement "/roster display"
author Mikael Berthe <mikael@lilotux.net>
date Thu, 13 Sep 2007 20:05:21 +0200
parents e42f48103609
children 1ea5a4cf2ae0
comparison
equal deleted inserted replaced
1310:a5336c44d4e2 1311:0dda8238af21
207 (is_groupchat && (message_flags & HBB_PREFIX_HLIGHT))) 207 (is_groupchat && (message_flags & HBB_PREFIX_HLIGHT)))
208 scr_Beep(); 208 scr_Beep();
209 } 209 }
210 210
211 // We need to update the roster if the sender is unknown or 211 // We need to update the roster if the sender is unknown or
212 // if the sender is offline/invisible and hide_offline_buddies is set 212 // if the sender is offline/invisible and a filter is set.
213 if (new_guy || 213 if (new_guy ||
214 (buddy_getstatus(roster_usr->data, NULL) == offline && 214 (buddy_getstatus(roster_usr->data, NULL) == offline &&
215 buddylist_get_hide_offline_buddies())) 215 buddylist_isset_filter()))
216 { 216 {
217 update_roster = TRUE; 217 update_roster = TRUE;
218 } 218 }
219 219
220 g_free(bmsg); 220 g_free(bmsg);