_version.c

tmi2_fluffos_v2/lib/cmds/std/_version.c · 642 B

From the archive tmi2_fluffos_v2.zip

Download the archive   « Back to the archive contents

// #include <disclaimer.h>
// The Version command.
// Brought to you by Buddha@TMI
// Updated for mudlib version by Watcher@TMI
// 4-19-92

#include <config.h>
#include <mudlib.h>

inherit DAEMON ;

int help();

int cmd_version(string str) {
	if (str) return help();
 
	write(capitalize(mud_name()) + " is running the " + MUDLIB_VERSION +
	      " mudlib on " + version() + "\n");
	write("The game has been up since ");
  printf( "%s.\n", ctime( time() - uptime() ) );
	return 1;
}

int help() {
	write("Usage:\tversion\n" +
	"Tells you what version of MudOS the world is running and how long" +
		"\nthe world has been up.\n");
	return 1;
}

Site Stats

Snippets: 1791
Codebases: 571