summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/chat-commands.c4
1 files changed, 2 insertions, 2 deletions
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);