# HG changeset patch # User Eric Polino # Date 1182281660 0 # Node ID c5bfa35c1cdd99567934cac6141533ced1613a58 # Parent 062bb6a591ff9d0a6e6347bb43521dc276536f30# Parent fd27baf1711b2b3ff8239ecf555a4e3c6f59e09d merge of '459bc8f8b1cfc6e94a0a8e8328bc86651ee59cbc' and 'b0a16e66e861e8f2bbf2d62d49116280cbd6b034' diff -r 062bb6a591ff -r c5bfa35c1cdd finch/gntrequest.c --- a/finch/gntrequest.c Tue Jun 19 14:32:23 2007 +0000 +++ b/finch/gntrequest.c Tue Jun 19 19:34:20 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: