# HG changeset patch # User Mikael Berthe # Date 1349988401 -7200 # Node ID ca40744c03be80eb289c88b8ce3a8d6fd756f394 # Parent 7b5bd6ad83b40f2c53cd101a2afe621c09695665 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. diff -r 7b5bd6ad83b4 -r ca40744c03be mcabber/mcabber/screen.c --- 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);