diff 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
line wrap: on
line diff
--- a/mcabber/src/screen.c	Sun Nov 13 17:03:59 2005 +0100
+++ b/mcabber/src/screen.c	Sun Nov 13 22:15:19 2005 +0100
@@ -528,7 +528,7 @@
     top_panel(inputPanel);
     update_panels();
     doupdate();
-  } else {
+  } else if (!(prefix_flags & HBB_PREFIX_NOFLAG)) {
     roster_msg_setflag(winId, TRUE);
     update_roster = TRUE;
   }
@@ -789,7 +789,8 @@
 void scr_WriteIncomingMessage(const char *jidfrom, const char *text,
         time_t timestamp, guint prefix)
 {
-  if (!prefix) prefix = HBB_PREFIX_IN;
+  if (!(prefix & ~HBB_PREFIX_NOFLAG))
+    prefix |= HBB_PREFIX_IN;
   // FIXME expand tabs / filter out special chars...
   scr_WriteMessage(jidfrom, text, timestamp, prefix);
   update_panels();