* Make stealth mode available to all users
[citadel.git] / citadel / serv_chat.c
index 99732cf553bea5c0945bd067add43c3fb8c9b8ba..d8cbc80a64723eac9ec5f751cb6d1fbc2a65ac2a 100644 (file)
@@ -702,18 +702,16 @@ void cmd_dexp(char *argbuf)
 {
        int new_state;
 
-       if (!CC->logged_in) {
-               cprintf("%d Not logged in.\n",ERROR+NOT_LOGGED_IN);
-               return;
-               }
+       if (CtdlAccessCheck(ac_logged_in)) return;
 
        new_state = extract_int(argbuf, 0);
        if ((new_state == 0) || (new_state == 1)) {
                CC->disable_exp = new_state;
-               }
-       cprintf("%d %d\n", CIT_OK, CC->disable_exp);
        }
 
+       cprintf("%d %d\n", CIT_OK, CC->disable_exp);
+}
+
 
 /*
  * Request client termination