diff mcabber/src/screen.c @ 190:9c2023d60986

[/trunk] Changeset 202 by mikael * Enable INFO prefix.
author mikael
date Fri, 06 May 2005 15:10:16 +0000
parents 4f3975f1b852
children a05d5c3876ec
line wrap: on
line diff
--- a/mcabber/src/screen.c	Fri May 06 14:34:51 2005 +0000
+++ b/mcabber/src/screen.c	Fri May 06 15:10:16 2005 +0000
@@ -299,6 +299,8 @@
         wprintw(win_entry->win, "%.11s <== ", date);
       else if (line->flags & HBB_PREFIX_OUT)
         wprintw(win_entry->win, "%.11s --> ", date);
+      else if (line->flags & HBB_PREFIX_INFO)
+        wprintw(win_entry->win, "%.11s *** ", date);
       else {
         wprintw(win_entry->win, "%.11s     ", date);
       }
@@ -669,11 +671,13 @@
   scr_WriteInWindow(jid, text, timestamp, prefix_flags, FALSE);
 }
 
+// If prefix is NULL, HBB_PREFIX_IN is supposed.
 void scr_WriteIncomingMessage(const char *jidfrom, const char *text,
-        time_t timestamp)
+        time_t timestamp, guint prefix)
 {
+  if (!prefix) prefix = HBB_PREFIX_IN;
   // FIXME expand tabs / filter out special chars...
-  scr_WriteMessage(jidfrom, text, timestamp, HBB_PREFIX_IN);
+  scr_WriteMessage(jidfrom, text, timestamp, prefix);
   update_panels();
   doupdate();
 }