Fixed crash bug in @create and removed privileged ability of specifying
authorRick Bird <nveid@bender.theari.com>
Mon, 25 Apr 2011 03:34:23 +0000 (23:34 -0400)
committerRick Bird <nveid@bender.theari.com>
Mon, 25 Apr 2011 03:34:23 +0000 (23:34 -0400)
a dbref with @create.
Fixes #242

src/command.c
src/create.c

index 30b0f4f1203805c993997e0c61b5cc3282016908..cdd4687aee6d482e5e9b12387e3808db7b5fd048 100644 (file)
@@ -119,7 +119,7 @@ COMLIST commands[] = {
   {"@CPATTR", "CONVERT NOFLAGCOPY", cmd_cpattr,
    CMD_T_ANY | CMD_T_EQSPLIT | CMD_T_RS_ARGS,
    NULL},
-  {"@CREATE", NULL, cmd_create, CMD_T_ANY | CMD_T_EQSPLIT | CMD_T_NOGAGGED,
+  {"@CREATE", NULL, cmd_create, CMD_T_ANY | CMD_T_EQSPLIT | CMD_T_NOGAGGED | CMD_T_RS_ARGS,
    NULL},
 #ifdef MUSHCRON
   {"@CRON", "ADD DELETE LIST COMMANDS FUNCTIONS", cmd_cron, CMD_T_ANY | CMD_T_EQSPLIT | CMD_T_LS_NOPARSE, "POWER^CRON"},
index cb0cbfe3d9358f38393c4ad654f0f14fece39b44..5a3b1c1f06e427d63aff9c9cf28d43d56c4e5bf1 100644 (file)
@@ -481,10 +481,6 @@ do_create(dbref player, char *name, int cost, char *newdbref)
 
   if (newdbref && *newdbref) {
     /* move newdbref to the start of the free list */
-    if (!has_flag_by_name(player, "WIZARD", NOTYPE)) {
-      notify(player, T("Permission denied."));
-      return NOTHING;
-    }
     thing = parse_dbref(newdbref);
     if (thing == NOTHING || !GoodObject(thing) || !IsGarbage(thing)) {
       notify(player, T("That is not a valid dbref."));