From: Eric W. <war...@us...> - 2001-10-16 18:12:36
|
Update of /cvsroot/gaim/gaim/src/protocols/icq In directory usw-pr-cvs1:/tmp/cvs-serv1634 Modified Files: gaim_icq.c Log Message: so is this Index: gaim_icq.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/icq/gaim_icq.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- gaim_icq.c 2001/10/16 18:11:15 1.15 +++ gaim_icq.c 2001/10/16 18:12:33 1.16 @@ -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; } - icq_Login(link, STATUS_ONLINE); id->cur_status = STATUS_ONLINE; + icq_Login(link, STATUS_ONLINE); set_login_progress(gc, 0, "Connecting..."); } |