diff mcabber/src/screen.c @ 1141:5be2408a6534

Add option "max_history_blocks"
author Mikael Berthe <mikael@lilotux.net>
date Tue, 06 Feb 2007 00:21:42 +0100
parents 104676e3389b
children 0e27177882c7
line wrap: on
line diff
--- a/mcabber/src/screen.c	Sun Feb 04 18:49:47 2007 +0100
+++ b/mcabber/src/screen.c	Tue Feb 06 00:21:42 2007 +0100
@@ -395,7 +395,7 @@
       printf("%s\n", buffer_locale);
       // ncurses are not initialized yet, so we call directly hbuf routine
       hbuf_add_line(&statushbuf, buf_specialwindow, timestamp,
-        HBB_PREFIX_SPECIAL, 0);
+        HBB_PREFIX_SPECIAL, 0, 0);
     }
 
     g_free(convbuf1);
@@ -691,7 +691,8 @@
 
   text_locale = from_utf8(text);
   hbuf_add_line(&win_entry->hbuf, text_locale, timestamp, prefix_flags,
-                maxX - Roster_Width - PREFIX_WIDTH);
+                maxX - Roster_Width - PREFIX_WIDTH,
+                get_max_history_blocks());
   g_free(text_locale);
 
   if (win_entry->cleared) {