From: Rick Bird Date: Mon, 25 Apr 2011 03:34:23 +0000 (-0400) Subject: Fixed crash bug in @create and removed privileged ability of specifying X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=84b4de39bf54d6c4ad18e969fc4e1502256c2dff;p=cobramush.git Fixed crash bug in @create and removed privileged ability of specifying a dbref with @create. Fixes #242 --- 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."));