Code:
for (door = 0; door < DIR_COUNT; door++) {
if (!EXIT(ch, door) || EXIT(ch, door)->to_room == NOWHERE)
continue;
if (EXIT_FLAGGED(EXIT(ch, door), EX_CLOSED) &&
!CONFIG_DISP_CLOSED_DOORS)
continue;
if (EXIT_FLAGGED(EXIT(ch, door), EX_HIDDEN) &&
!PRF_FLAGGED(ch, PRF_HOLYLIGHT))
continue;
if (!seesExits)
continue;
if (EXIT_FLAGGED(EXIT(ch, door), EX_CLOSED))
count = snprintf(prompt + len, sizeof (prompt) - len, "%s(%s)%s",
EXIT_FLAGGED(EXIT(ch, door), EX_HIDDEN) ?
CCWHT(ch, C_NRM) : CCRED(ch, C_NRM),
autoexits[door], CCCYN(ch, C_NRM));
else if (EXIT_FLAGGED(EXIT(ch, door), EX_HIDDEN))
count = snprintf(prompt + len, sizeof (prompt) - len, "%s%s%s",
CCWHT(ch, C_NRM), autoexits[door], CCCYN(ch, C_NRM));
else
count = snprintf(prompt + len, sizeof (prompt) - len, "%s",
autoexits[door]);
slen++;
if (count >= 0)
len += count;
}
That's how it looks like in our code, you'd then just add the proper toggle so the player can turn it off and on (unless you want to force them to have it)