# HG changeset patch # User Eric Polino # Date 1182263528 0 # Node ID eb49b371cf9a31a3dee6569712a571e724c60cca # Parent 68a3b83795c6226f21e84b38d6ce022742e6df7f FIX: Setting an INT field in preferences wasn't working properly. We were checking for a FIELD_LIST but doing the same thing all the time. diff -r 68a3b83795c6 -r eb49b371cf9a finch/gntrequest.c --- a/finch/gntrequest.c Thu Jun 14 03:54:49 2007 +0000 +++ b/finch/gntrequest.c Tue Jun 19 14:32:08 2007 +0000 @@ -674,9 +674,13 @@ case PURPLE_PREF_INT: { long int tmp; - if (type == PURPLE_REQUEST_FIELD_LIST) /* Lists always return string */ + if (type == PURPLE_REQUEST_FIELD_LIST){ /* Lists always return string */ sscanf(val, "%ld", &tmp); - purple_prefs_set_int(id, (gint)tmp); + purple_prefs_set_int(id, (gint)tmp); + } + else{ + purple_prefs_set_int(id,GPOINTER_TO_INT(val)); + } break; } case PURPLE_PREF_BOOLEAN: