diff options
author | Timo Sirainen <cras@irssi.org> | 2000-07-02 22:22:55 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-07-02 22:22:55 +0000 |
commit | 584fa9a0343dd939e1ed316df725ebbc4bcc9bc6 (patch) | |
tree | d15762480b0c12ebb6e325e6404d02f0bf29ca0d /src | |
parent | f1e1907e8001ba94e19357f8ddd5f6be5bf51785 (diff) | |
download | irssi-584fa9a0343dd939e1ed316df725ebbc4bcc9bc6.zip |
Server reconnection was a bit buggy - it didn't have to wait for the 5
minutes if it connected to some other server in same ircnet..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@422 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/core/server-setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/core/server-setup.c b/src/irc/core/server-setup.c index 6e271887..628eaec5 100644 --- a/src/irc/core/server-setup.c +++ b/src/irc/core/server-setup.c @@ -79,7 +79,6 @@ void server_setup_fill_conn(IRC_SERVER_CONNECT_REC *conn, SETUP_SERVER_REC *sser { if (sserver->own_host != NULL) conn_set_ip(conn, &sserver->own_ip, sserver->own_host); - sserver->last_connect = time(NULL); if (sserver->ircnet != NULL && conn->ircnet == NULL) conn->ircnet = g_strdup(sserver->ircnet); @@ -135,6 +134,7 @@ create_addr_conn(const char *address, int port, const char *password, if (sserver == NULL) return conn; server_setup_fill_conn(conn, sserver); + sserver->last_connect = time(NULL); /* fill the rest from IRC network settings */ ircnet = sserver->ircnet == NULL ? NULL : ircnet_find(sserver->ircnet); |