From: Eric W. <war...@us...> - 2001-11-20 20:47:30
|
Update of /cvsroot/gaim/gaim/src/protocols/irc In directory usw-pr-cvs1:/tmp/cvs-serv30863 Modified Files: irc.c Log Message: maybe this is better? Index: irc.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/irc/irc.c,v retrieving revision 1.57 retrieving revision 1.58 diff -u -d -r1.57 -r1.58 --- irc.c 2001/11/20 01:01:21 1.57 +++ irc.c 2001/11/20 20:47:25 1.58 @@ -806,6 +806,19 @@ return FALSE; } + if (!idata->online) { + /* Now lets sign ourselves on */ + account_online(gc); + serv_finish_login(gc); + + if (bud_list_cache_exists(gc)) + do_import(gc, NULL); + + /* we don't call this now because otherwise some IRC servers might not like us */ + idata->timer = g_timeout_add(20000, irc_request_buddy_update, gc); + idata->online = TRUE; + } + buf++; process_data_init(pdibuf, buf, word, word_eol, FALSE); @@ -934,19 +947,6 @@ int i = 0; gchar buf[1024]; gboolean off; - - if (!idata->online) { - /* Now lets sign ourselves on */ - account_online(gc); - serv_finish_login(gc); - - if (bud_list_cache_exists(gc)) - do_import(gc, NULL); - - /* we don't call this now because otherwise some IRC servers might not like us */ - idata->timer = g_timeout_add(20000, irc_request_buddy_update, gc); - idata->online = TRUE; - } i = read(idata->fd, buf, 1024); if (i <= 0) { |