mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
/UPGRADE shouldn't begin server reconnections in old client.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2176 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
348461aa08
commit
5524f89d71
@ -172,7 +172,8 @@ server_connect_copy_skeleton(SERVER_CONNECT_REC *src, int connect_info)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define server_should_reconnect(server) \
|
#define server_should_reconnect(server) \
|
||||||
((server)->connection_lost && ((server)->connrec->chatnet != NULL || \
|
((server)->connection_lost && !(server)->session_reconnect && \
|
||||||
|
((server)->connrec->chatnet != NULL || \
|
||||||
(!(server)->banned && !(server)->dns_error)))
|
(!(server)->banned && !(server)->dns_error)))
|
||||||
|
|
||||||
#define sserver_connect_ok(rec, net) \
|
#define sserver_connect_ok(rec, net) \
|
||||||
|
@ -189,6 +189,7 @@ static void session_save_server(SERVER_REC *server, CONFIG_REC *config,
|
|||||||
server->handle = NULL;
|
server->handle = NULL;
|
||||||
|
|
||||||
server->connection_lost = TRUE;
|
server->connection_lost = TRUE;
|
||||||
|
server->session_reconnect = TRUE;
|
||||||
server_disconnect(server);
|
server_disconnect(server);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user