/* Know the room ... but not if it's the page log room, or if the
* caller specified that we're only entering this room transiently.
*/
- if ((strcasecmp(CCC->room.QRname, CtdlGetConfigStr("c_logpages")))
- && (transiently == 0) ) {
+ if ((strcasecmp(CCC->room.QRname, CtdlGetConfigStr("c_logpages"))) && (transiently == 0))
+ {
vbuf.v_flags = vbuf.v_flags & ~V_FORGET & ~V_LOCKOUT;
vbuf.v_flags = vbuf.v_flags | V_ACCESS;
}
/* If a "master user" is defined, handle its authentication if specified */
CC->is_master = 0;
- if ( (strlen(CtdlGetConfigStr("c_master_user")) > 0) &&
- (strlen(CtdlGetConfigStr("c_master_pass")) > 0) &&
+ if ( (!IsEmptyStr(CtdlGetConfigStr("c_master_user"))) &&
+ (!IsEmptyStr(CtdlGetConfigStr("c_master_pass"))) &&
(authname != NULL) &&
(!strcasecmp(authname, CtdlGetConfigStr("c_master_user"))) )
{