Mercurial > pidgin
changeset 2516:d379814be59e
[gaim-migrate @ 2529]
so is this
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 16 Oct 2001 18:12:33 +0000 |
parents | 3ec36a342496 |
children | 9cee43e4903d |
files | src/protocols/icq/gaim_icq.c |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/icq/gaim_icq.c Tue Oct 16 18:11:15 2001 +0000 +++ b/src/protocols/icq/gaim_icq.c Tue Oct 16 18:12:33 2001 +0000 @@ -80,11 +80,12 @@ struct gaim_connection *gc = link->icq_UserData; struct icq_data *id = (struct icq_data *)gc->proto_data; debug_printf("%s is now online.\n", gc->username); - id->connected = TRUE; - account_online(gc); - serv_finish_login(gc); - - icq_ChangeStatus(id->link, STATUS_ONLINE); + if (!id->connected) { + account_online(gc); + serv_finish_login(gc); + icq_ChangeStatus(id->link, STATUS_ONLINE); + id->connected = TRUE; + } } static void icq_logged_off(icq_Link *link) { @@ -103,8 +104,7 @@ return; } - icq_Login(link, STATUS_ONLINE); - id->cur_status = STATUS_ONLINE; + icq_Login(link, id->cur_status); } void strip_linefeed(gchar *text) @@ -319,8 +319,8 @@ return; } + id->cur_status = STATUS_ONLINE; icq_Login(link, STATUS_ONLINE); - id->cur_status = STATUS_ONLINE; set_login_progress(gc, 0, "Connecting..."); }