/* for internal programs, always do everything */
if (((CC->internal_pgm)) && (roombuf->QRflags & QR_INUSE)) {
/* for internal programs, always do everything */
if (((CC->internal_pgm)) && (roombuf->QRflags & QR_INUSE)) {
/* If this is a public room, it's accessible... */
if ( ((roombuf->QRflags & QR_PRIVATE) == 0)
&& ((roombuf->QRflags & QR_MAILBOX) == 0) ) {
/* If this is a public room, it's accessible... */
if ( ((roombuf->QRflags & QR_PRIVATE) == 0)
&& ((roombuf->QRflags & QR_MAILBOX) == 0) ) {
retval = retval | UA_KNOWN | UA_GOTOALLOWED;
}
/* If this is a preferred users only room, check access level */
if (roombuf->QRflags & QR_PREFONLY) {
if (userbuf->axlevel < 5) {
retval = retval | UA_KNOWN | UA_GOTOALLOWED;
}
/* If this is a preferred users only room, check access level */
if (roombuf->QRflags & QR_PREFONLY) {
if (userbuf->axlevel < 5) {
/* For private rooms, check the generation number matchups */
if ( (roombuf->QRflags & QR_PRIVATE)
&& ((roombuf->QRflags & QR_MAILBOX) == 0) ) {
/* For private rooms, check the generation number matchups */
if ( (roombuf->QRflags & QR_PRIVATE)
&& ((roombuf->QRflags & QR_MAILBOX) == 0) ) {
retval = retval | UA_KNOWN | UA_GOTOALLOWED;
}
/* Otherwise, check if this is a guess-name or passworded
retval = retval | UA_KNOWN | UA_GOTOALLOWED;
}
/* Otherwise, check if this is a guess-name or passworded
/* For mailbox rooms, also check the generation number matchups */
if (roombuf->QRflags & QR_MAILBOX) {
/* For mailbox rooms, also check the generation number matchups */
if (roombuf->QRflags & QR_MAILBOX) {
retval = retval | UA_KNOWN | UA_GOTOALLOWED;
}
/* An explicit match means the user belongs in this room */
if (vbuf.v_flags & V_ACCESS) {
retval = retval | UA_KNOWN | UA_GOTOALLOWED;
}
/* An explicit match means the user belongs in this room */
if (vbuf.v_flags & V_ACCESS) {
retval = retval | UA_KNOWN | UA_GOTOALLOWED;
}
}
/* Check to see if the user has forgotten this room */
if (vbuf.v_flags & V_FORGET) {
retval = retval | UA_KNOWN | UA_GOTOALLOWED;
}
}
/* Check to see if the user has forgotten this room */
if (vbuf.v_flags & V_FORGET) {
retval = retval & ~UA_KNOWN;
retval = retval | UA_ZAPPED;
}
/* If user is explicitly locked out of this room, deny everything */
if (vbuf.v_flags & V_LOCKOUT) {
retval = retval & ~UA_KNOWN;
retval = retval | UA_ZAPPED;
}
/* If user is explicitly locked out of this room, deny everything */
if (vbuf.v_flags & V_LOCKOUT) {
retval = retval & ~UA_KNOWN & ~UA_GOTOALLOWED;
}
/* Aides get access to everything */
if (userbuf->axlevel >= 6) {
retval = retval & ~UA_KNOWN & ~UA_GOTOALLOWED;
}
/* Aides get access to everything */
if (userbuf->axlevel >= 6) {
NEWMSG: /* By the way, we also check for the presence of new messages */
if (is_msg_in_mset(vbuf.v_seen, roombuf->QRhighest) == 0) {
NEWMSG: /* By the way, we also check for the presence of new messages */
if (is_msg_in_mset(vbuf.v_seen, roombuf->QRhighest) == 0) {
retval = retval | UA_HASNEWMSGS;
}
/* System rooms never show up in the list. */
if (roombuf->QRflags2 & QR2_SYSTEM) {
retval = retval | UA_HASNEWMSGS;
}
/* System rooms never show up in the list. */
if (roombuf->QRflags2 & QR2_SYSTEM) {