From defbf0ec0505989b8e6b714ffd8de9792b465398 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 27 Apr 2021 18:06:44 -0400 Subject: [PATCH] Assume the server supports the QNOP command, do not test for it, this is another command we've supported for 20 years --- textclient/citadel_ipc.c | 3 --- textclient/commands.c | 6 ++---- textclient/textclient.h | 1 - 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/textclient/citadel_ipc.c b/textclient/citadel_ipc.c index bcabb468e..dc8976444 100644 --- a/textclient/citadel_ipc.c +++ b/textclient/citadel_ipc.c @@ -834,9 +834,6 @@ int CtdlIPCServerInfo(CtdlIPC * ipc, char *cret) case 10: ipc->ServInfo.ok_floors = atoi(buf); break; - case 13: - ipc->ServInfo.supports_qnop = atoi(buf); - break; case 14: ipc->ServInfo.supports_ldap = atoi(buf); break; diff --git a/textclient/commands.c b/textclient/commands.c index c8d920a3d..cecbb4d1f 100644 --- a/textclient/commands.c +++ b/textclient/commands.c @@ -627,10 +627,8 @@ static void really_do_keepalive(void) { } } - // If half keepalives are enabled, send a QNOP to the server (if the - // server supports it) and then do nothing. - if ((keepalives_enabled == KA_HALF) - && (ipc_for_signal_handlers->ServInfo.supports_qnop > 0)) { + // If half keepalives are enabled, send a QNOP to the server, then do nothing. + if (keepalives_enabled == KA_HALF) { CtdlIPC_chat_send(ipc_for_signal_handlers, "QNOP"); } } diff --git a/textclient/textclient.h b/textclient/textclient.h index a13f4ae3d..169f6935d 100644 --- a/textclient/textclient.h +++ b/textclient/textclient.h @@ -141,7 +141,6 @@ struct CtdlServInfo { char sysadm[64]; char moreprompt[256]; int ok_floors; - int supports_qnop; int supports_ldap; int newuser_disabled; char default_cal_zone[256]; -- 2.30.2