Mercurial > pidgin.yaz
comparison libpurple/protocols/oscar/libaim.c @ 15624:71af5b6209d5
uri-handler support for AIM/ICQ, Yahoo and MSN
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Sun, 11 Feb 2007 21:58:50 +0000 |
parents | 0b6f337a46d5 |
children | 32c366eeeb99 |
comparison
equal
deleted
inserted
replaced
15623:a2411e8dbe2d | 15624:71af5b6209d5 |
---|---|
126 }; | 126 }; |
127 | 127 |
128 static void | 128 static void |
129 init_plugin(GaimPlugin *plugin) | 129 init_plugin(GaimPlugin *plugin) |
130 { | 130 { |
131 GaimAccountOption *option; | 131 oscar_init(GAIM_PLUGIN_PROTOCOL_INFO(plugin)); |
132 | |
133 option = gaim_account_option_string_new(_("Server"), "server", OSCAR_DEFAULT_LOGIN_SERVER); | |
134 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); | |
135 | |
136 option = gaim_account_option_int_new(_("Port"), "port", OSCAR_DEFAULT_LOGIN_PORT); | |
137 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); | |
138 | |
139 option = gaim_account_option_bool_new( | |
140 _("Always use AIM/ICQ proxy server for file transfers\n(slower, but does not reveal your IP address)"), "always_use_rv_proxy", | |
141 OSCAR_DEFAULT_ALWAYS_USE_RV_PROXY); | |
142 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); | |
143 | |
144 /* Preferences */ | |
145 gaim_prefs_add_none("/plugins/prpl/oscar"); | |
146 gaim_prefs_add_bool("/plugins/prpl/oscar/recent_buddies", FALSE); | |
147 gaim_prefs_add_bool("/plugins/prpl/oscar/show_idle", FALSE); | |
148 gaim_prefs_remove("/plugins/prpl/oscar/always_use_rv_proxy"); | |
149 } | 132 } |
150 | 133 |
151 GAIM_INIT_PLUGIN(aim, init_plugin, info); | 134 GAIM_INIT_PLUGIN(aim, init_plugin, info); |