comparison mcabber/src/commands.c @ 1038:f9e8fd9cb58b

Set new_msg flag when listing annotations in the status buffer in non-chat mode If the chat mode is disabled and "/roster note" displays notes in the status buffer, we need to set the new_msg flag.
author Mikael Berthe <mikael@lilotux.net>
date Sun, 19 Nov 2006 14:22:25 +0100
parents f7ef8003fc35
children ebbde723614b
comparison
equal deleted inserted replaced
1037:f7ef8003fc35 1038:f9e8fd9cb58b
523 GSList *notes; 523 GSList *notes;
524 notes = jb_get_all_storage_rosternotes(); 524 notes = jb_get_all_storage_rosternotes();
525 // Call display_and_free_note() for each note, 525 // Call display_and_free_note() for each note,
526 // with winId = NULL (special window) 526 // with winId = NULL (special window)
527 g_slist_foreach(notes, (GFunc)&display_and_free_note, NULL); 527 g_slist_foreach(notes, (GFunc)&display_and_free_note, NULL);
528 if (notes) {
529 scr_setmsgflag_if_needed(SPECIAL_BUFFER_STATUS_ID, TRUE);
530 update_roster = TRUE;
531 }
528 g_slist_free(notes); 532 g_slist_free(notes);
529 } 533 }
530 534
531 static void roster_note(char *arg) 535 static void roster_note(char *arg)
532 { 536 {