Mercurial > pidgin
comparison libpurple/plugins/autoaccept.c @ 31083:dd2f19faee14
Stu points out that removing this old pref could be a problem for users sharing .purple directories.
| author | John Bailey <rekkanoryo@rekkanoryo.org> |
|---|---|
| date | Thu, 30 Dec 2010 02:43:47 +0000 |
| parents | 40e5d8c3acca |
| children | 8c6a1fa21f43 |
comparison
equal
deleted
inserted
replaced
| 31082:86598f5d7ebd | 31083:dd2f19faee14 |
|---|---|
| 229 | 229 |
| 230 static gboolean | 230 static gboolean |
| 231 plugin_load(PurplePlugin *plugin) | 231 plugin_load(PurplePlugin *plugin) |
| 232 { | 232 { |
| 233 /* migrate the old pref (we should only care if the plugin is actually *used*) */ | 233 /* migrate the old pref (we should only care if the plugin is actually *used*) */ |
| 234 if(purple_prefs_get_bool(PREF_STRANGER_OLD)) { | 234 if(purple_prefs_get_bool(PREF_STRANGER_OLD)) |
| 235 purple_prefs_set_int(PREF_STRANGER, FT_REJECT); | 235 purple_prefs_set_int(PREF_STRANGER, FT_REJECT); |
| 236 purple_prefs_remove(PREF_STRANGER_OLD); | |
| 237 } | |
| 238 | 236 |
| 239 purple_signal_connect(purple_xfers_get_handle(), "file-recv-request", plugin, | 237 purple_signal_connect(purple_xfers_get_handle(), "file-recv-request", plugin, |
| 240 PURPLE_CALLBACK(file_recv_request_cb), plugin); | 238 PURPLE_CALLBACK(file_recv_request_cb), plugin); |
| 241 purple_signal_connect(purple_blist_get_handle(), "blist-node-extended-menu", plugin, | 239 purple_signal_connect(purple_blist_get_handle(), "blist-node-extended-menu", plugin, |
| 242 PURPLE_CALLBACK(context_menu), plugin); | 240 PURPLE_CALLBACK(context_menu), plugin); |
