(xdump): Fail unless GUINEA_PIGS is enabled.
This commit is contained in:
parent
bebf6a7de0
commit
b0ce8c0253
1 changed files with 5 additions and 0 deletions
|
@ -535,6 +535,11 @@ xdump(void)
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
int type;
|
int type;
|
||||||
|
|
||||||
|
if (!opt_GUINEA_PIGS) {
|
||||||
|
pr("You are not a guinea pig!\n");
|
||||||
|
return RET_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
p = getstarg(player->argp[1], "What? ", buf);
|
p = getstarg(player->argp[1], "What? ", buf);
|
||||||
if (!p)
|
if (!p)
|
||||||
return RET_SYN;
|
return RET_SYN;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue