static int string_to_lockflag(char const *p) { int f; f = string_to_privs(lock_privs, p, 0); if (!f) return -1; return f; }
static int string_to_lockflag(dbref player, char const *p, privbits *flag) { privbits f; f = string_to_privs(lock_privs, p, 0); if (!f) return -1; if (!See_All(player) && (f & LF_WIZARD)) return -1; *flag = f; return 0; }