From b0ce8c0253b6a41620d61e63521f4a827c37c8ed Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Thu, 16 Dec 2004 22:05:15 +0000 Subject: [PATCH] (xdump): Fail unless GUINEA_PIGS is enabled. --- src/lib/commands/xdump.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/commands/xdump.c b/src/lib/commands/xdump.c index 957de34af..987d91d5d 100644 --- a/src/lib/commands/xdump.c +++ b/src/lib/commands/xdump.c @@ -535,6 +535,11 @@ xdump(void) char buf[1024]; int type; + if (!opt_GUINEA_PIGS) { + pr("You are not a guinea pig!\n"); + return RET_FAIL; + } + p = getstarg(player->argp[1], "What? ", buf); if (!p) return RET_SYN; -- 2.43.0