changeset 2731:db294c199be3

fix prefs color msg
author corvid <corvid@lavabit.com>
date Sun, 30 Dec 2012 21:29:57 +0000
parents ad415fc9a5ce
children b724f8f9feae
files src/prefsparser.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/prefsparser.cc	Sun Dec 30 17:06:11 2012 +0000
+++ b/src/prefsparser.cc	Sun Dec 30 21:29:57 2012 +0000
@@ -144,7 +144,7 @@
       break;
    case PREFS_COLOR:
       *(int32_t *)node->pref = a_Color_parse(value, *(int32_t*)node->pref,&st);
-      if (st)
+      if (st == 1)
          MSG("prefs: Color '%s' not recognized.\n", value);
       break;
    case PREFS_STRING: