]> code.citadel.org Git - citadel.git/blobdiff - citadel/commands.c
* Added server-side REQT command to issue client termination requests
[citadel.git] / citadel / commands.c
index e83696d021e870fbb3a859b7bcabfd82717198d5..8a2cf2d28e6aaf077519c17e2187b553f448bfac 100644 (file)
@@ -215,6 +215,12 @@ void print_express(void)
                extract(node, &buf[4], 4);
        
                stamp = localtime(&timestamp);
+
+               /* If the page is a Logoff Request, honor it. */
+               if (flags & 2) {
+                       termn8 = 1;
+                       return;
+               }
        
                if (strlen(rc_exp_cmd) > 0) {
                        outpipe = popen(rc_exp_cmd, "w");
@@ -293,10 +299,6 @@ void print_express(void)
        printf("\n---\n");
        color(BRIGHT_WHITE);
 
-       /* If the page is a Logoff Request, honor it. */
-       if (flags & 2) {
-               termn8 = 1;
-       }
 
 }