summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-09-07 17:13:00 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-09-07 17:13:00 +0000
commit910749a2a04175207afa4de27a2a578329171f39 (patch)
tree8863b245b0796e76b8c3d92a77bf1cbfc5aaa841 /src
parentb532986e5b6931fa485c387b61fb5d04184c7198 (diff)
downloadirssi-910749a2a04175207afa4de27a2a578329171f39.zip
banned/dns_error state was set to servers in setup, but never reset, which
means irssi stopped reconnecting to those servers forever if they occured once. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2910 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/core/servers-reconnect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/servers-reconnect.c b/src/core/servers-reconnect.c
index eee3e843..a095f3c4 100644
--- a/src/core/servers-reconnect.c
+++ b/src/core/servers-reconnect.c
@@ -210,8 +210,8 @@ static void sig_reconnect(SERVER_REC *server)
sserver->last_connect = server->connect_time == 0 ?
time(NULL) : server->connect_time;
sserver->last_failed = !server->connected;
- if (server->banned) sserver->banned = TRUE;
- if (server->dns_error) sserver->dns_error = TRUE;
+ sserver->banned = server->banned;
+ sserver->dns_error = server->dns_error;
}
if (sserver == NULL || conn->chatnet == NULL) {