diff options
author | Timo Sirainen <cras@irssi.org> | 2002-09-30 21:43:46 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-09-30 21:43:46 +0000 |
commit | 525773aa80b3bc441768d49be82dd1ddd5f583a1 (patch) | |
tree | dda212a4ffb8d2c3ded43d1ef958a014d75e6aec /src/irc | |
parent | 28faa953be748ef4cd0b615e2925fbeecb35827f (diff) | |
download | irssi-525773aa80b3bc441768d49be82dd1ddd5f583a1.zip |
If reconnection was aborted by trying to reconnect to another server, the
channels and usermode wasn't restored.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2934 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/core/irc-servers-reconnect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/irc/core/irc-servers-reconnect.c b/src/irc/core/irc-servers-reconnect.c index 1c6865de..07b39b88 100644 --- a/src/irc/core/irc-servers-reconnect.c +++ b/src/irc/core/irc-servers-reconnect.c @@ -52,7 +52,8 @@ static void sig_server_connect_copy(SERVER_CONNECT_REC **dest, static void sig_server_reconnect_save_status(IRC_SERVER_CONNECT_REC *conn, IRC_SERVER_REC *server) { - if (!IS_IRC_SERVER_CONNECT(conn) || !IS_IRC_SERVER(server)) + if (!IS_IRC_SERVER_CONNECT(conn) || !IS_IRC_SERVER(server) || + !server->connected) return; g_free_not_null(conn->channels); |