mud/lib/secure/cmds/admins/unbanish.c
2020-09-06 05:43:07 -07:00

27 lines
702 B
C

// /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.");
}