From 84b4de39bf54d6c4ad18e969fc4e1502256c2dff Mon Sep 17 00:00:00 2001 From: Rick Bird Date: Sun, 24 Apr 2011 23:34:23 -0400 Subject: [PATCH] Fixed crash bug in @create and removed privileged ability of specifying a dbref with @create. Fixes #242 --- src/command.c | 2 +- src/create.c | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/command.c b/src/command.c index 30b0f4f..cdd4687 100644 --- a/src/command.c +++ b/src/command.c @@ -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"}, diff --git a/src/create.c b/src/create.c index cb0cbfe..5a3b1c1 100644 --- a/src/create.c +++ b/src/create.c @@ -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.")); -- 2.30.2