don't trip the idle timer on a TIME command.
authorArt Cancro <ajc@citadel.org>
Wed, 8 Mar 2006 05:04:36 +0000 (05:04 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 8 Mar 2006 05:04:36 +0000 (05:04 +0000)
citadel/citserver.c

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