static void init_plugin(GaimPlugin *plugin) { gaim_prefs_add_none("/plugins/core/pluginpref_example"); gaim_prefs_add_bool("/plugins/core/pluginpref_example/bool", TRUE); gaim_prefs_add_int("/plugins/core/pluginpref_example/int", 0); gaim_prefs_add_int("/plugins/core/pluginpref_example/int_choice", 1); gaim_prefs_add_string("/plugins/core/pluginpref_example/string", "string"); gaim_prefs_add_string("/plugins/core/pluginpref_example/max_string", "max length string"); gaim_prefs_add_string("/plugins/core/pluginpref_example/masked_string", "masked"); gaim_prefs_add_string("/plugins/core/pluginpref_example/string_choice", "red"); }
static void init_plugin(GaimPlugin *plugin) { char *dirname; dirname = g_build_filename(gaim_user_dir(), "autoaccept", NULL); gaim_prefs_add_none(PREF_PREFIX); gaim_prefs_add_string(PREF_PATH, dirname); gaim_prefs_add_bool(PREF_STRANGER, TRUE); gaim_prefs_add_bool(PREF_NOTIFY, TRUE); g_free(dirname); }
static gboolean plugin_load(GaimPlugin * plugin) { void *conv_handle = gaim_conversations_get_handle(); gaim_prefs_add_none("/plugins"); gaim_prefs_add_none("/plugins/core"); gaim_prefs_add_none("/plugins/core/bot"); gaim_prefs_add_none("/plugins/core/bot/challenger"); gaim_prefs_add_string("/plugins/core/bot/challenger/question", _("How do you spell the number 10?")); gaim_prefs_add_string("/plugins/core/bot/challenger/answer", _("ten")); gaim_prefs_add_bool("/plugins/core/bot/challenger/auto_add_permit", FALSE); gaim_signal_connect(conv_handle, "receiving-im-msg", plugin, GAIM_CALLBACK(receiving_im_msg_cb), NULL); return TRUE; }
void gaim_log_init(void) { gaim_prefs_add_none("/core/logging"); gaim_prefs_add_bool("/core/logging/log_ims", FALSE); gaim_prefs_add_bool("/core/logging/log_chats", FALSE); gaim_prefs_add_bool("/core/logging/log_system", FALSE); gaim_prefs_add_bool("/core/logging/log_signon_signoff", FALSE); gaim_prefs_add_bool("/core/logging/log_idle_state", FALSE); gaim_prefs_add_bool("/core/logging/log_away_state", FALSE); gaim_prefs_add_bool("/core/logging/log_own_states", FALSE); gaim_prefs_add_string("/core/logging/format", "txt"); gaim_log_logger_add(&html_logger); gaim_log_logger_add(&txt_logger); gaim_log_logger_add(&old_logger); gaim_prefs_connect_callback("/core/logging/format", logger_pref_cb, NULL); gaim_prefs_trigger_callback("/core/logging/format"); logsize_users = g_hash_table_new_full((GHashFunc)_gaim_logsize_user_hash, (GEqualFunc)_gaim_logsize_user_equal, (GDestroyNotify)_gaim_logsize_user_free_key, NULL); }
static void _init_plugin(GaimPlugin * plugin) { GaimAccountOption *option; option = gaim_account_option_string_new(_("Bio Line"), "bioline", ""); prpl_info.protocol_options = g_list_prepend(prpl_info.protocol_options, option); option = gaim_account_option_int_new(_("Port"), "port", IRC_DEFAULT_PORT); prpl_info.protocol_options = g_list_prepend(prpl_info.protocol_options, option); option = gaim_account_option_string_new(_("Server"), "server", IRC_DEFAULT_SERVER); prpl_info.protocol_options = g_list_prepend(prpl_info.protocol_options, option); /** * We have to pull thumbnails, since they aren't pushed like with * other protocols. */ gaim_signal_connect(gaim_conversations_get_handle(), "conversation-created", plugin, GAIM_CALLBACK(gaym_get_photo_info), NULL); gaim_signal_connect(gaim_conversations_get_handle(), "deleting-conversation", plugin, GAIM_CALLBACK(gaym_clean_channel_members), NULL); gaim_signal_register(gaim_accounts_get_handle(), "info-updated", gaim_marshal_VOID__POINTER_POINTER, NULL, 2, gaim_value_new(GAIM_TYPE_SUBTYPE, GAIM_SUBTYPE_ACCOUNT), gaim_value_new(GAIM_TYPE_POINTER, GAIM_TYPE_CHAR)); gaim_prefs_add_none("/plugins/prpl/gaym"); gaim_prefs_add_int("/plugins/prpl/gaym/chat_room_instances", 4); gaim_prefs_add_bool("/plugins/prpl/gaym/show_join", TRUE); gaim_prefs_add_bool("/plugins/prpl/gaym/show_part", TRUE); gaim_prefs_add_bool("/plugins/prpl/gaym/show_bio_with_join", TRUE); gaim_prefs_add_bool("/plugins/prpl/gaym/botfilter_enable", FALSE); gaim_prefs_add_bool("/plugins/prpl/gaym/botfilter_ignore_null", FALSE); gaim_prefs_add_string("/plugins/prpl/gaym/botfilter_sep", "|"); gaim_prefs_add_string("/plugins/prpl/gaym/botfilter_patterns", "NULL|MODE * -i|*dantcamboy*|*Free preview*|*epowerchat*|*Live gay sex cam show*|*camboiz*"); gaim_prefs_add_string("/plugins/prpl/gaym/botfilter_url", GAYBOI_SPAM_URL); gaim_prefs_connect_callback("/plugins/prpl/gaym/botfilter_url", botfilter_url_changed_cb, NULL); gaim_prefs_add_string("/plugins/prpl/gaym/botfilter_url_result", ""); gaim_prefs_add_int("/plugins/prpl/gaym/botfilter_url_last_check", 0); _gaym_plugin = plugin; gaym_register_commands(); }
void gaim_xfers_init(void) { gaim_prefs_add_none("/core/ft"); gaim_prefs_add_string("/core/ft/public_ip", ""); }