# HG changeset patch # User Eric Polino # Date 1182281596 0 # Node ID fd27baf1711b2b3ff8239ecf555a4e3c6f59e09d # Parent eb49b371cf9a31a3dee6569712a571e724c60cca disapproval of revision 'c80d121e4fd54ef1ba9c1ce9e4afa059f6b777e9' diff -r eb49b371cf9a -r fd27baf1711b finch/gntrequest.c --- a/finch/gntrequest.c Tue Jun 19 14:32:08 2007 +0000 +++ b/finch/gntrequest.c Tue Jun 19 19:33:16 2007 +0000 @@ -674,13 +674,9 @@ 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); - } - else{ - purple_prefs_set_int(id,GPOINTER_TO_INT(val)); - } + purple_prefs_set_int(id, (gint)tmp); break; } case PURPLE_PREF_BOOLEAN: