From d2e7e041ffd7acebee62e22afeb40af79c70c926 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 5 Mar 2001 16:11:53 +0000 Subject: /SERVER: don't set reconnection to TRUE if we're not disconnecting from any server git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1357 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/chat-commands.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/core/chat-commands.c b/src/core/chat-commands.c index 11cc9c30..eece8dde 100644 --- a/src/core/chat-commands.c +++ b/src/core/chat-commands.c @@ -149,8 +149,6 @@ static void update_reconnection(SERVER_CONNECT_REC *conn, SERVER_REC *server) SERVER_CONNECT_REC *oldconn; RECONNECT_REC *recon; - conn->reconnection = TRUE; - if (server != NULL) { oldconn = server->connrec; reconnect_save_status(conn, server); @@ -168,6 +166,8 @@ static void update_reconnection(SERVER_CONNECT_REC *conn, SERVER_REC *server) conn->channels = g_strdup(oldconn->channels); } + conn->reconnection = TRUE; + if (conn->chatnet == NULL && oldconn->chatnet != NULL) conn->chatnet = g_strdup(oldconn->chatnet); -- cgit v1.2.3