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);