comparison src/protocols/jabber/jabber.c @ 4966:54cd43869333

[gaim-migrate @ 5300] fun stuff this makes the modify account dialog make a little more sense for jabber, and makes irc accounts distinguishable in the assorted dropdowns. however, there is a slight catch. IRC accounts now take the form of nick@server. The first time you log on with an IRC account, it will change it for you. However, if you try to edit the account before it gets signed on, the server will revert to the default (irc.freenode.net). So go log in with all of your IRC accounts before you go editing them ;-) committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Thu, 03 Apr 2003 02:34:48 +0000
parents af89e6b99c1a
children fb232515839a
comparison
equal deleted inserted replaced
4965:6e7082cf0892 4966:54cd43869333
4205 } 4205 }
4206 4206
4207 G_MODULE_EXPORT void jabber_init(struct prpl *ret) 4207 G_MODULE_EXPORT void jabber_init(struct prpl *ret)
4208 { 4208 {
4209 /* the NULL's aren't required but they're nice to have */ 4209 /* the NULL's aren't required but they're nice to have */
4210 struct proto_user_split *pus;
4210 struct proto_user_opt *puo; 4211 struct proto_user_opt *puo;
4211 ret->protocol = PROTO_JABBER; 4212 ret->protocol = PROTO_JABBER;
4212 ret->options = OPT_PROTO_UNIQUE_CHATNAME | OPT_PROTO_CHAT_TOPIC; 4213 ret->options = OPT_PROTO_UNIQUE_CHATNAME | OPT_PROTO_CHAT_TOPIC;
4213 ret->name = g_strdup("Jabber"); 4214 ret->name = g_strdup("Jabber");
4214 ret->list_icon = jabber_list_icon; 4215 ret->list_icon = jabber_list_icon;
4253 ret->group_buddy = jabber_group_change; 4254 ret->group_buddy = jabber_group_change;
4254 ret->send_typing = jabber_send_typing; 4255 ret->send_typing = jabber_send_typing;
4255 ret->convo_closed = jabber_convo_closed; 4256 ret->convo_closed = jabber_convo_closed;
4256 ret->rename_group = jabber_rename_group; 4257 ret->rename_group = jabber_rename_group;
4257 4258
4259 pus = g_new0(struct proto_user_split, 1);
4260 pus->sep = '@';
4261 pus->label = g_strdup(_("Server:"));
4262 pus->def = g_strdup("jabber.org");
4263 ret->user_splits = g_list_append(ret->user_splits, pus);
4264
4265 pus = g_new0(struct proto_user_split, 1);
4266 pus->sep = '/';
4267 pus->label = g_strdup(_("Resource:"));
4268 pus->def = g_strdup("Gaim");
4269 ret->user_splits = g_list_append(ret->user_splits, pus);
4270
4258 puo = g_new0(struct proto_user_opt, 1); 4271 puo = g_new0(struct proto_user_opt, 1);
4259 puo->label = g_strdup(_("Port:")); 4272 puo->label = g_strdup(_("Port:"));
4260 puo->def = g_strdup_printf("%d", DEFAULT_PORT); 4273 puo->def = g_strdup_printf("%d", DEFAULT_PORT);
4261 puo->pos = USEROPT_PORT; 4274 puo->pos = USEROPT_PORT;
4262 ret->user_opts = g_list_append(ret->user_opts, puo); 4275 ret->user_opts = g_list_append(ret->user_opts, puo);