From e2a980439e41ee432b74bd16d2ba2061bc8590f9 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Fri, 28 Dec 2007 16:17:39 +0100 Subject: [PATCH] Remove code for unregistered clients from check_pings_list() because it is only called for lists of registered clients. --- src/client.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/client.c b/src/client.c index 80e7852ec..531cc4ea3 100644 --- a/src/client.c +++ b/src/client.c @@ -339,10 +339,7 @@ check_pings_list(dlink_list * list) } } - if(!IsRegistered(client_p)) - ping = ConfigFileEntry.connect_timeout; - else - ping = get_client_ping(client_p); + ping = get_client_ping(client_p); if(ping < (CurrentTime - client_p->localClient->lasttime)) { @@ -353,9 +350,9 @@ check_pings_list(dlink_list * list) if(((CurrentTime - client_p->localClient->lasttime) >= (2 * ping) && (client_p->flags & FLAGS_PINGSENT))) { - if(IsAnyServer(client_p)) + if(IsServer(client_p)) { - sendto_realops_snomask(SNO_GENERAL, is_remote_connect(client_p) && !IsServer(client_p) ? L_NETWIDE : L_ALL, + sendto_realops_snomask(SNO_GENERAL, L_ALL, "No response from %s, closing link", get_server_name(client_p, HIDE_IP)); ilog(L_SERVER,