Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- a/src/protocols/jabber/jabber.c Thu Apr 03 02:32:17 2003 +0000 +++ b/src/protocols/jabber/jabber.c Thu Apr 03 02:34:48 2003 +0000 @@ -4207,6 +4207,7 @@ G_MODULE_EXPORT void jabber_init(struct prpl *ret) { /* the NULL's aren't required but they're nice to have */ + struct proto_user_split *pus; struct proto_user_opt *puo; ret->protocol = PROTO_JABBER; ret->options = OPT_PROTO_UNIQUE_CHATNAME | OPT_PROTO_CHAT_TOPIC; @@ -4255,6 +4256,18 @@ ret->convo_closed = jabber_convo_closed; ret->rename_group = jabber_rename_group; + pus = g_new0(struct proto_user_split, 1); + pus->sep = '@'; + pus->label = g_strdup(_("Server:")); + pus->def = g_strdup("jabber.org"); + ret->user_splits = g_list_append(ret->user_splits, pus); + + pus = g_new0(struct proto_user_split, 1); + pus->sep = '/'; + pus->label = g_strdup(_("Resource:")); + pus->def = g_strdup("Gaim"); + ret->user_splits = g_list_append(ret->user_splits, pus); + puo = g_new0(struct proto_user_opt, 1); puo->label = g_strdup(_("Port:")); puo->def = g_strdup_printf("%d", DEFAULT_PORT);