continue;
}
switch (*fptr) {
- case '@': /* The cause */
- cause = (dbref) va_arg(arguments, dbref);
- next = 0;
- break;
- case '#': /* This should set the enactor */
- enactor = (dbref) va_arg(arguments, dbref);
- next = 0;
- break;
- case 'D':
- case 'd':
- global_eval_context.wenv[spot++] =
- unparse_integer(va_arg(arguments, intmax_t));
- next = 0;
- break;
- case 'S':
- case 's':
- global_eval_context.wenv[spot++] = va_arg(arguments, char *);
- next = 0;
- break;
- case ' ': /* this shouldn't happen.. but just in case */
- break;
- default:
- /* Bad Format.. don't run & return an error */
- do_rawlog(LT_ERR,
- "%s:%d -> Unexpected format character '%c' in format \"%s\"",
- __FILE__, __LINE__, *fptr, format);
- /* Restore Environment */
- copy_namedregs(&global_eval_context.namedregs, &preserve_namedregs);
- free_namedregs(&preserve_namedregs);
- restore_global_regs("chook_sc_save", preserveq);
- restore_global_env("chook_sc_save", preserves);
- restore_global_nxt("chook_sc_save", preserve_wnxt, preserve_rnxt,
- val_wnxt, val_rnxt);
-
- return -2;
+ case '@': /* The cause */
+ cause = (dbref) va_arg(arguments, dbref);
+ next = 0;
+ break;
+ case '#': /* This should set the enactor */
+ enactor = (dbref) va_arg(arguments, dbref);
+ next = 0;
+ break;
+ case 'D':
+ case 'd':
+ global_eval_context.wenv[spot++] =
+ unparse_integer(va_arg(arguments, intmax_t));
+ next = 0;
+ break;
+ case 'S':
+ case 's':
+ global_eval_context.wenv[spot++] = va_arg(arguments, char *);
+ next = 0;
+ break;
+ case ' ': /* this shouldn't happen.. but just in case */
+ break;
+ default:
+ /* Bad Format.. don't run & return an error */
+ do_rawlog(LT_ERR,
+ "%s:%d -> Unexpected format character '%c' in format \"%s\"",
+ __FILE__, __LINE__, *fptr, format);
+ /* Restore Environment */
+ copy_namedregs(&global_eval_context.namedregs,
+ &preserve_namedregs);
+ free_namedregs(&preserve_namedregs);
+ restore_global_regs("chook_sc_save", preserveq);
+ restore_global_env("chook_sc_save", preserves);
+ restore_global_nxt("chook_sc_save", preserve_wnxt, preserve_rnxt,
+ val_wnxt, val_rnxt);
+
+ return -2;
}
}
strncpy(cmd_buf, atr_value(atr), BUFFER_LEN - 1);