/** Table of attribute flags. */
extern PRIV attr_privs_set[];
extern PRIV attr_privs_view[];
-dbref atr_on_obj = NOTHING;
/** A flag to show if we're in the middle of a @wipe (this changes
* behaviour for atr_clr()). Yes, this is gross and ugly, but it
for (qp = &d->output.head; ((cur = *qp) != NULL);) {
#ifdef COMPILE_CONSOLE
- if (d->descriptor == 0)
+ if (d->descriptor == 0) {
cnt = write(STDOUT_FILENO, cur->start, cur->nchars);
- else
+ }
#else /* COMPILE_CONSOLE */
#ifdef HAS_OPENSSL
if (d->ssl) {
char *start, *command;
dbref powinherit = NOTHING;
dbref local_ooref;
- if(AL_FLAGS(a) & AF_POWINHERIT)
- powinherit = atr_on_obj;
start = safe_atr_value(a);
command = start;
/* Trim off $-command or ^-command prefix */
global_eval_context.wenv[0] = arg;
sp = save = safe_atr_value(a);
bp = buff;
- if(AL_FLAGS(a) & AF_POWINHERIT)
- exec_target = atr_on_obj;
- else
- exec_target = loc;
+ exec_target = loc;
process_expression(buff, &bp, &sp, exec_target, ((AL_FLAGS(a) & AF_POWINHERIT ) ? loc : player), player,
PE_DEFAULT, PT_DEFAULT, NULL);
global_eval_context.wenv[1] = arg2;
sp = save = safe_atr_value(a);
bp = buff;
- if(AL_FLAGS(a) & AF_POWINHERIT)
- exec_target = atr_on_obj;
- else
- exec_target = loc;
+ exec_target = loc;
process_expression(buff, &bp, &sp, exec_target, ((AL_FLAGS(a) & AF_POWINHERIT ) ? loc : player), player,
PE_DEFAULT, PT_DEFAULT, NULL);
*bp = '\0';
global_eval_context.wenv[0] = arg;
global_eval_context.wenv[1] = arg2;
sp = save = safe_atr_value(invfmt);
- if(AL_FLAGS(invfmt) & AF_POWINHERIT)
- exec_target = atr_on_obj;
- else
- exec_target = player;
+ exec_target = player;
bp = buff;
process_expression(buff, &bp, &sp, exec_target, player, player, PE_DEFAULT, PT_DEFAULT, NULL);
*bp = '\0';