}
COMMAND (cmd_page) {
- int has_eq = 0;
- if (args_raw && *args_raw && strchr(args_raw, '='))
- has_eq = 1;
if (SW_ISSET(sw, SWITCH_PORT))
do_page_port(player, arg_left, arg_right);
else
do_page(player, arg_left, arg_right, cause, SW_ISSET(sw, SWITCH_NOEVAL),
!(SW_ISSET(sw, SWITCH_BLIND) ||
(!(SW_ISSET(sw, SWITCH_LIST)) && (BLIND_PAGE))),
- SW_ISSET(sw, SWITCH_OVERRIDE), has_eq);
+ SW_ISSET(sw, SWITCH_OVERRIDE), rhs_present);
}
COMMAND (cmd_pose) {
safe_str(T("#-1 NO SUCH CONFIG OPTION"), buff, bp);
return;
} else {
+ int first = 1;
for (cp = conftable; cp->name; cp++) {
- safe_str(cp->name, buff, bp);
- safe_chr(' ', buff, bp);
+ if (cp->group) {
+ if (first)
+ first = 0;
+ else
+ safe_chr(' ', buff, bp);
+ safe_str(cp->name, buff, bp);
+ }
}
for (cp = (COBRA_CONF *) hash_firstentry(&local_options); cp;
cp = (COBRA_CONF *) hash_nextentry(&local_options)) {
- safe_str(cp->name, buff, bp);
- safe_chr(' ', buff, bp);
+ if (cp->group) {
+ if (first)
+ first = 0;
+ else
+ safe_chr(' ', buff, bp);
+ safe_str(cp->name, buff, bp);
+ }
}
}
}
FLAG flag_table[] = {
{"CHOWN_OK", 'C', NOTYPE, CHOWN_OK, F_ANY, F_ANY},
{"DARK", 'D', NOTYPE, DARK, F_ANY, F_ANY},
- {"GOING", 'G', NOTYPE, GOING, F_INTERNAL, F_ANY},
+ {"GOING", 'G', NOTYPE, GOING, F_INTERNAL, F_INTERNAL},
{"HAVEN", 'H', NOTYPE, HAVEN, F_ANY, F_ANY},
{"LINK_OK", 'L', NOTYPE, LINK_OK, F_ANY, F_ANY},
{"OPAQUE", 'O', NOTYPE, LOOK_OPAQUE, F_ANY, F_ANY},
sensitive = !strcmp(called_as, "GREP") || !strcmp(called_as, "WILDGREP");
wild = !strcmp(called_as, "WILDGREPI") || !strcmp(called_as, "WILDGREP");
tp = grep_util(executor, it, args[1], args[2], sensitive, wild);
- add_check("fun_grep.attr_list");
safe_str(tp, buff, bp);
- mush_free((Malloc_t) tp, "fun_grep.attr_list");
+ mush_free(tp, "grep_util.buff");
}
/* Get database size statistics */