From: Art Cancro Date: Tue, 27 Apr 2021 22:06:44 +0000 (-0400) Subject: Assume the server supports the QNOP command, do not test for it, this is another... X-Git-Tag: v939~65 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=defbf0ec0505989b8e6b714ffd8de9792b465398 Assume the server supports the QNOP command, do not test for it, this is another command we've supported for 20 years --- 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];