[1470] in Coldmud discussion meeting
patch to genesis/src/ops/object.c to disable parentless creations
daemon@ATHENA.MIT.EDU (Thu Nov 11 15:48:43 1999
)
From: rozzin@geekspace.com (Joshua Rosen)
Date: Thu, 11 Nov 1999 15:08:46 EST
To: coldstuff@cold.org
Reply-To: coldstuff@cold.org
commence unified diff:
--- object.c~ Thu Jul 15 00:33:53 1999
+++ object.c Thu Nov 11 14:58:29 1999
@@ -684,6 +684,11 @@
/* Get parents list from second argument. */
parents = args[0].u.list;
+ if (!list_length(parents)) {
+ cthrow(perm_id, "You must specify at least one parent.");
+ return;
+ }
+
/* Verify that all parents are objnums. */
for (d = list_first(parents); d; d = list_next(parents, d)) {