void finch_prefs_update_old() { const char *str = NULL; purple_prefs_rename("/gaim/gnt", "/finch"); purple_prefs_rename("/purple/gnt", "/finch"); if ((str = purple_prefs_get_string("/purple/away/idle_reporting")) && strcmp(str, "gaim") == 0) purple_prefs_set_string("/purple/away/idle_reporting", "purple"); }
void purple_prefs_update_old() { purple_prefs_rename("/core", "/purple"); /* Remove some no-longer-used prefs */ purple_prefs_remove("/purple/away/auto_response/enabled"); purple_prefs_remove("/purple/away/auto_response/idle_only"); purple_prefs_remove("/purple/away/auto_response/in_active_conv"); purple_prefs_remove("/purple/away/auto_response/sec_before_resend"); purple_prefs_remove("/purple/away/auto_response"); purple_prefs_remove("/purple/away/default_message"); purple_prefs_remove("/purple/buddies/use_server_alias"); purple_prefs_remove("/purple/conversations/away_back_on_send"); purple_prefs_remove("/purple/conversations/send_urls_as_links"); purple_prefs_remove("/purple/conversations/im/show_login"); purple_prefs_remove("/purple/conversations/chat/show_join"); purple_prefs_remove("/purple/conversations/chat/show_leave"); purple_prefs_remove("/purple/conversations/combine_chat_im"); purple_prefs_remove("/purple/conversations/use_alias_for_title"); purple_prefs_remove("/purple/logging/log_signon_signoff"); purple_prefs_remove("/purple/logging/log_idle_state"); purple_prefs_remove("/purple/logging/log_away_state"); purple_prefs_remove("/purple/logging/log_own_states"); purple_prefs_remove("/purple/status/scores/hidden"); purple_prefs_remove("/plugins/core/autorecon/hide_connected_error"); purple_prefs_remove("/plugins/core/autorecon/hide_connecting_error"); purple_prefs_remove("/plugins/core/autorecon/hide_reconnecting_dialog"); purple_prefs_remove("/plugins/core/autorecon/restore_state"); purple_prefs_remove("/plugins/core/autorecon"); /* Convert old sounds while_away pref to new 3-way pref. */ if (purple_prefs_exists("/purple/sound/while_away") && purple_prefs_get_bool("/purple/sound/while_away")) { purple_prefs_set_int("/purple/sound/while_status", 3); } purple_prefs_remove("/purple/sound/while_away"); }