Mercurial > pidgin
changeset 2782:428bd24c18c6
[gaim-migrate @ 2795]
maybe this is better?
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 20 Nov 2001 20:47:25 +0000 |
parents | c172128500ec |
children | 436d2372828b |
files | src/protocols/irc/irc.c |
diffstat | 1 files changed, 13 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- 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");