Assume the server supports the QNOP command, do not test for it, this is another...
authorArt Cancro <ajc@citadel.org>
Tue, 27 Apr 2021 22:06:44 +0000 (18:06 -0400)
committerArt Cancro <ajc@citadel.org>
Tue, 27 Apr 2021 22:06:44 +0000 (18:06 -0400)
textclient/citadel_ipc.c
textclient/commands.c
textclient/textclient.h

index bcabb46..dc89764 100644 (file)
@@ -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;
index c8d920a..cecbb4d 100644 (file)
@@ -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");
        }
 }
index a13f4ae..169f693 100644 (file)
@@ -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];