X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fserv_chat.c;h=d8cbc80a64723eac9ec5f751cb6d1fbc2a65ac2a;hb=d461358bf1c0f776b796a35afb25848748655edc;hp=99732cf553bea5c0945bd067add43c3fb8c9b8ba;hpb=8680e1af74a40b28fda3c8fda325aef79cfb8e75;p=citadel.git diff --git a/citadel/serv_chat.c b/citadel/serv_chat.c index 99732cf55..d8cbc80a6 100644 --- a/citadel/serv_chat.c +++ b/citadel/serv_chat.c @@ -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