| 2072 }; |
2073 }; |
| 2073 |
2074 |
| 2074 static void |
2075 static void |
| 2075 __init_plugin(GaimPlugin *plugin) |
2076 __init_plugin(GaimPlugin *plugin) |
| 2076 { |
2077 { |
| 2077 struct proto_user_opt *puo; |
2078 GaimAccountOption *option; |
| 2078 |
2079 |
| 2079 puo = g_new0(struct proto_user_opt, 1); |
2080 option = gaim_account_option_string_new(_("TOC Host"), "server", TOC_HOST); |
| 2080 puo->label = g_strdup(_("TOC Host:")); |
2081 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, |
| 2081 puo->def = g_strdup("toc.oscar.aol.com"); |
2082 option); |
| 2082 puo->pos = USEROPT_AUTH; |
2083 |
| 2083 prpl_info.user_opts = g_list_append(prpl_info.user_opts, puo); |
2084 option = gaim_account_option_int_new(_("TOC Host"), "port", TOC_PORT); |
| 2084 |
2085 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, |
| 2085 puo = g_new0(struct proto_user_opt, 1); |
2086 option); |
| 2086 puo->label = g_strdup(_("TOC Port:")); |
|
| 2087 puo->def = g_strdup("9898"); |
|
| 2088 puo->pos = USEROPT_AUTHPORT; |
|
| 2089 prpl_info.user_opts = g_list_append(prpl_info.user_opts, puo); |
|
| 2090 |
2087 |
| 2091 my_protocol = plugin; |
2088 my_protocol = plugin; |
| 2092 } |
2089 } |
| 2093 |
2090 |
| 2094 GAIM_INIT_PLUGIN(toc, __init_plugin, info); |
2091 GAIM_INIT_PLUGIN(toc, __init_plugin, info); |