# HG changeset patch # User Sadrul Habib Chowdhury # Date 1233195136 0 # Node ID 075aa09253e771f1b30cfb48009cfd6c0bfb33df # Parent 0e2731b9875c168d497eb54d58874ced71ed56b2 Fix setting custom colorpairs containing 'default', thanks to jieryn on IRC. diff -r 0e2731b9875c -r 075aa09253e7 finch/libgnt/gntcolors.c --- a/finch/libgnt/gntcolors.c Wed Jan 28 10:27:53 2009 +0000 +++ b/finch/libgnt/gntcolors.c Thu Jan 29 02:12:16 2009 +0000 @@ -208,7 +208,7 @@ key = g_ascii_strdown(key, -1); color = gnt_colors_get_color(key); g_free(key); - if (color == -1) + if (color == -EINVAL) continue; init_color(color, r, g, b); @@ -251,7 +251,7 @@ int bg = gnt_colors_get_color(bgc); g_free(fgc); g_free(bgc); - if (fg == -1 || bg == -1) + if (fg == -EINVAL || bg == -EINVAL) continue; key = g_ascii_strdown(key, -1);