unbanish.c

ds3.0/lib/secure/cmds/admins/unbanish.c · 702 B

From the archive ds3.0.zip

Download the archive   « Back to the archive contents

//      /bin/adm/_unbanish.c
//      from the Dead Souls Mudlib
//      unbanishes a previously banished name
//      created by Shadowwolf@Dead Souls
//      rewritten for new security system by Descartes of Borg 930809

#include <lib.h>
#include <daemons.h>

inherit LIB_DAEMON;

int cmd(string str) {
    if(!archp(previous_object())) return 0;
    if(!str){
        write("Syntax: unbanish <string>");
        return 1;
    }
    write(capitalize(str = lower_case(str))+" is no longer banished.\n");
    catch(call_other(BANISH_D, "unbanish_name", str));
    return 1;
}

string GetHelp(){
    return ("Syntax: unbanish <name>\n\n"
            "Removes a name from the list of banished names.");
}

Site Stats

Snippets: 1791
Codebases: 571