Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/screen.c @ 513:d40c434fff46
Add HBB_PREFIX_NOFLAG
A line with this attribute won't trigger a notification flag.
This patch adds use of it for joins, leaves, nickname changes and topic
changes.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 13 Nov 2005 22:15:19 +0100 |
parents | 1744664332cd |
children | 979eb0fe2969 |
comparison
equal
deleted
inserted
replaced
512:1744664332cd | 513:d40c434fff46 |
---|---|
526 top_panel(win_entry->panel); | 526 top_panel(win_entry->panel); |
527 scr_UpdateWindow(win_entry); | 527 scr_UpdateWindow(win_entry); |
528 top_panel(inputPanel); | 528 top_panel(inputPanel); |
529 update_panels(); | 529 update_panels(); |
530 doupdate(); | 530 doupdate(); |
531 } else { | 531 } else if (!(prefix_flags & HBB_PREFIX_NOFLAG)) { |
532 roster_msg_setflag(winId, TRUE); | 532 roster_msg_setflag(winId, TRUE); |
533 update_roster = TRUE; | 533 update_roster = TRUE; |
534 } | 534 } |
535 } | 535 } |
536 | 536 |
787 | 787 |
788 // If prefix is NULL, HBB_PREFIX_IN is supposed. | 788 // If prefix is NULL, HBB_PREFIX_IN is supposed. |
789 void scr_WriteIncomingMessage(const char *jidfrom, const char *text, | 789 void scr_WriteIncomingMessage(const char *jidfrom, const char *text, |
790 time_t timestamp, guint prefix) | 790 time_t timestamp, guint prefix) |
791 { | 791 { |
792 if (!prefix) prefix = HBB_PREFIX_IN; | 792 if (!(prefix & ~HBB_PREFIX_NOFLAG)) |
793 prefix |= HBB_PREFIX_IN; | |
793 // FIXME expand tabs / filter out special chars... | 794 // FIXME expand tabs / filter out special chars... |
794 scr_WriteMessage(jidfrom, text, timestamp, prefix); | 795 scr_WriteMessage(jidfrom, text, timestamp, prefix); |
795 update_panels(); | 796 update_panels(); |
796 doupdate(); | 797 doupdate(); |
797 } | 798 } |