libpurple/plugins/autoaccept.c

changeset 31286
98dc1fa69a57
parent 31283
df4184c594d7
child 31287
e1c3051e704c
equal deleted inserted replaced
31285:6f8f1683c6d8 31286:98dc1fa69a57
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);

mercurial