unsnoop.c

ds2.1.1/lib/secure/cmds/creators/unsnoop.c · 557 B

From the archive ds2.1.1.zip

Download the archive   « Back to the archive contents

#include <lib.h>
#include <daemons.h>

inherit LIB_DAEMON;

int cmd(string str) {
    object ob;

    if( !str || str == "" ) {
	write("Unsnoop whom?\n");
    }
    else if(!(ob=find_player(str=lower_case(str))))
	write(str+": no such player.\n");
    else
	SNOOP_D->RemoveWatcher(this_player()->GetKeyName(), str);
    write("The snoop daemon has received your request.");
    return 1;
}

int help()
{
    write( @EndText
Syntax: unsnoop <user>
Effect: Stops snooping the specified user.
See also: snoop, monitor, unmonitor
EndText
    );
    return 1;
}

Site Stats

Snippets: 1791
Codebases: 571