RWHO command no longer trips the idle timer
authorArt Cancro <ajc@citadel.org>
Mon, 6 Mar 2006 04:48:45 +0000 (04:48 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 6 Mar 2006 04:48:45 +0000 (04:48 +0000)
citadel/citserver.c

index a4f488fc4487825cad9519a1853f0f17ebc934dd..f3194231395d373ea64a3777d40295e1f99ba2a9 100644 (file)
@@ -911,12 +911,13 @@ void do_command_loop(void) {
 
        /*
         * Let other clients see the last command we executed, and
-        * update the idle time, but not NOOP, QNOP, PEXP, or GEXP.
+        * update the idle time, but not NOOP, QNOP, PEXP, GEXP, or RWHO.
         */
        if ( (strncasecmp(cmdbuf, "NOOP", 4))
           && (strncasecmp(cmdbuf, "QNOP", 4))
           && (strncasecmp(cmdbuf, "PEXP", 4))
-          && (strncasecmp(cmdbuf, "GEXP", 4)) ) {
+          && (strncasecmp(cmdbuf, "GEXP", 4))
+          && (strncasecmp(cmdbuf, "RWHO", 4)) ) {
                strcpy(CC->lastcmdname, "    ");
                safestrncpy(CC->lastcmdname, cmdbuf, sizeof(CC->lastcmdname));
                time(&CC->lastidle);