mcabber/mcabber/screen.c
changeset 2029 ca40744c03be
parent 2028 7b5bd6ad83b4
child 2032 f740c4128f76
--- 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);