Mercurial > pidgin
changeset 5613:3d0a2b9f5a8e
[gaim-migrate @ 6019]
ok, finally think i've got this right
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sat, 31 May 2003 17:12:14 +0000 |
parents | 9cd94a5bec8e |
children | ff89436b30d2 |
files | src/protocols/jabber/jabber.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/jabber/jabber.c Sat May 31 17:06:43 2003 +0000 +++ b/src/protocols/jabber/jabber.c Sat May 31 17:12:14 2003 +0000 @@ -810,6 +810,7 @@ { GaimAccount *account; int port, rc; + const char *connect_server; const char *server; if (!gjc || gjc->state != JCONN_STATE_OFF) @@ -817,8 +818,9 @@ account = GJ_GC(gjc)->account; port = gaim_account_get_int(account, "port", DEFAULT_PORT); - server = gaim_account_get_string(account, "connect_server", - gjc->user->server); + connect_server = gaim_account_get_string(account, "connect_server", ""); + server = connect_server[0] ? connect_server : gjc->user->server; + gjc->parser = XML_ParserCreate(NULL); XML_SetUserData(gjc->parser, (void *)gjc);