dbxwhere.c

ds2.1.1/lib/secure/cmds/creators/dbxwhere.c · 462 B

From the archive ds2.1.1.zip

Download the archive   « Back to the archive contents

/* Beek - 10/4/94 */
#include <lib.h>

inherit LIB_DAEMON;

mixed cmd(string str) {
    mapping error;
    object ob;
    int i;

    if (str) {
	ob = find_player(str);
	if (!ob) {
	    //write("No such player.");
	    return "Player not found.";
	}
    } else
	ob = this_player();
    if (error = (mapping)ob->GetLastError()) {
	return sprintf("%s\n", master()->standard_trace(error, 1));
    } else write("No error.\n");
    return "dbxwhere run complete.";
}

Site Stats

Snippets: 1791
Codebases: 571