1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -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:
Timo Sirainen 2001-12-01 20:23:48 +00:00 committed by cras
parent 348461aa08
commit 5524f89d71
2 changed files with 4 additions and 2 deletions

View File

@ -172,8 +172,9 @@ 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)->banned && !(server)->dns_error))) ((server)->connrec->chatnet != NULL || \
(!(server)->banned && !(server)->dns_error)))
#define sserver_connect_ok(rec, net) \ #define sserver_connect_ok(rec, net) \
(!(rec)->banned && !(rec)->dns_error && (rec)->chatnet != NULL && \ (!(rec)->banned && !(rec)->dns_error && (rec)->chatnet != NULL && \

View File

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