pwd.c

foundation2_fluffos_v1/lib/secure/cmds/creator/pwd.c · 571 B

From the archive foundation2_fluffos_v1.zip

Download the archive   « Back to the archive contents

/*
// This file is part of the TMI Mudlib distribution.
// You can use this code, I couldn't care less.
// Written by Sulam(12-21-91)
// Just for tradition this files help was added by me too (Brian)
// and the date was...You guessed it! (1/28/92)
*/

#include <lib.h>

inherit LIB_DAEMON;

int
cmd()
{
   message("system", (string)this_player()->query_cwd() + ":", this_player());
	return 1;
}

int
help() {
  message("system", "Command: pwd\nSyntax: pwd\n"
	  "This command returns the directory that you are currently "
	  "working in.", this_player());
  return 1;
}

Site Stats

Snippets: 1791
Codebases: 571