_snoopable.c

tmi2_fluffos_v2/lib/cmds/std/_snoopable.c · 925 B

From the archive tmi2_fluffos_v2.zip

Download the archive   « Back to the archive contents

// This file is part of the TMI distribution mudlib.
// Please include this header if you use this code.
// Written by Buddha@TMI (8/1/92)
// Help added by Mobydick, 11-21-92. BEAT CAL!

#include <priv.h>
#include <mudlib.h>

inherit DAEMON ;

int cmd_snoopable() {
	int snoopy;
	if (this_player()->query("snoopable")) {
		this_player()->set("snoopable", 0, MASTER_ONLY);
		write("You are no longer snoopable.\n");
	} else {
		this_player()->set("snoopable", 1, MASTER_ONLY);
		write("You can now be snooped by anyone.\n");
	}
	return 1;
}

int help() {
	write ("Usage: snoopable\n\n"+
"The snoopable command turns your snoopability on and off. If you are\n"+
"snoopable, any wizard can snoop you. If you are not snoopable, only\n"+
"administrators can snoop you. It is polite to remain snoopable, and it\n"+
"is also polite not to snoop anyone without their permission.\n"+
"\nSee also: snoop.\n") ;
	return 1 ;
}
/* EOF */

Site Stats

Snippets: 1791
Codebases: 571