# HG changeset patch # User Eric Warmenhoven # Date 1006289245 0 # Node ID 428bd24c18c62482bde05d1f3f3eeec6885145f4 # Parent c172128500ec86969e7158469391b58c3c7393c8 [gaim-migrate @ 2795] maybe this is better? committer: Tailor Script diff -r c172128500ec -r 428bd24c18c6 src/protocols/irc/irc.c --- a/src/protocols/irc/irc.c Tue Nov 20 20:19:43 2001 +0000 +++ b/src/protocols/irc/irc.c Tue Nov 20 20:47:25 2001 +0000 @@ -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); @@ -935,19 +948,6 @@ 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) { hide_login_progress(gc, "Read error");