1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Ignore DNS not found errors when considering reconnect.

Contrary to the standards, these are often transient.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4873 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Jilles Tjoelker 2008-08-25 16:34:02 +00:00 committed by jilles
parent 84e1e871e7
commit 6e1d887a7a

View File

@ -203,10 +203,10 @@ server_connect_copy_skeleton(SERVER_CONNECT_REC *src, int connect_info)
#define server_should_reconnect(server) \
((server)->connection_lost && !(server)->no_reconnect && \
((server)->connrec->chatnet != NULL || \
(!(server)->banned && !(server)->dns_error)))
!(server)->banned))
#define sserver_connect_ok(rec, net) \
(!(rec)->banned && !(rec)->dns_error && (rec)->chatnet != NULL && \
(!(rec)->banned && (rec)->chatnet != NULL && \
g_strcasecmp((rec)->chatnet, (net)) == 0)
static void sig_reconnect(SERVER_REC *server)