# HG changeset patch # User Nathan Walp # Date 1054401134 0 # Node ID 3d0a2b9f5a8eb7553acab0aa0d71b20557ed27da # Parent 9cd94a5bec8ef1d474e683431f7d0da8040ef895 [gaim-migrate @ 6019] ok, finally think i've got this right committer: Tailor Script diff -r 9cd94a5bec8e -r 3d0a2b9f5a8e src/protocols/jabber/jabber.c --- 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);