_dbxwhere.c

tmi2_fluffos_v2/lib/cmds/adm/_dbxwhere.c · 445 B

From the archive tmi2_fluffos_v2.zip

Download the archive   « Back to the archive contents

#include <mudlib.h>

inherit DAEMON;

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

    if (str) {
        ob = find_player(str);
        if (!ob) {
            write("No such player.");
            return 1;
        }
    } else
        ob = this_player();
    if (error = (mapping)ob->query_error()) {

        printf("%s\n", master()->standard_trace(error, 1));
    } else write("No error.\n");
    return 1;
}

Site Stats

Snippets: 1791
Codebases: 571