unsuspend.c

skylib_fluffos_v3/mudlib/cmds/lord/unsuspend.c · 612 B

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

/*  -*- LPC -*-  */

#include <parser.h>
#include <access.h>

inherit COMMAND_BASE;

mixed cmd(string str) {
    if (this_player() != this_player(1))
        return 0;
    if (!lordp(geteuid(previous_object())))
        return notify_fail("You must be a lord to unsuspend someone.");
    notify_fail("We failed!\n");
    if (!BASTARDS_H->unsuspend_person(str))
        return 0;
    write(str+" unsuspended.\n");
    return 1;
} /* cmd() */

int help() {
    return notify_fail("Syntax: unsuspend <name>.\n");
}

mixed *query_patterns() {
    return ({ "<string>", (: cmd($4[0]) :), });
} /* query_patterns() */

Site Stats

Snippets: 1791
Codebases: 571