unregister.c
ds3.0/lib/secure/cmds/admins/unregister.c · 1.2 KB
From the archive ds3.0.zip
Download the archive « Back to the archive contents
// /bin/adm/_unregister.c
// from the Dead Souls Mudlib
// takes a site off of the list of sites needing to register
// created by Shadowwolf@Dead Souls 93????
// rewritten for the new 3.0 security system
#include <lib.h>
#include <daemons.h>
inherit LIB_DAEMON;
int cmd(string str) {
if(!member_group(previous_object(), "SECURE")) {
if(!member_group(previous_object(), "LAW")) return 0;
}
if(!str) return 0;
if(member_array(str, BANISH_D->query_registered()) == -1) {
write("That site is not on the list of sites needing to register.\n");
return 1;
}
BANISH_D->unregister_site(str);
log_file("watch/register", previous_object()->GetKeyName()+
" UNREGISTERED "+str+": "+ctime(time())+"\n");
write("Site : "+str+" is now not on the registration list.\n");
return 1;
}
string GetHelp() {
return ("Syntax: unregister <site>\n\n"
"Takes a site off the list of sites which must register their "
"character before being allowed in.\nSee also: "
"register, whoregistered, banish, unbanish, whobanished, letin, "
"wholetin, unletin");
}