changeset 2029:ca40744c03be

Do not warn when the configuration file contains 256-color values Configuration file is read before ncurses is initialized so we cannot assume the terminal doesn't support 256 colors.
author Mikael Berthe <mikael@lilotux.net>
date Thu, 11 Oct 2012 22:46:41 +0200
parents 7b5bd6ad83b4
children 0771e130f79d
files mcabber/mcabber/screen.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/mcabber/screen.c	Thu Oct 11 22:44:34 2012 +0200
+++ b/mcabber/mcabber/screen.c	Thu Oct 11 22:46:41 2012 +0200
@@ -242,7 +242,7 @@
 
   // Directly support 256-color values
   result = atoi(name);
-  if (result > 0 && result < COLORS)
+  if (result > 0 && (result < COLORS || !Curses))
     return result;
 
   scr_LogPrint(LPRINT_LOGNORM, "ERROR: Wrong color: %s", name);