32 lines
986 B
C
32 lines
986 B
C
#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) {
|
|
notify_fail("Correct syntax: <unallow [str]>\n");
|
|
return 0;
|
|
}
|
|
if(member_array(str = lower_case(str),
|
|
BANISH_D->query_allowed()) == -1) {
|
|
notify_fail(capitalize(str)+" is not set to be let in.\n");
|
|
return 0;
|
|
}
|
|
BANISH_D->unallow_name(str);
|
|
log_file("watch/players", previous_object()->GetKeyName()+
|
|
" UNLETIN "+str+": "+ctime(time())+"\n");
|
|
return 1;
|
|
}
|
|
|
|
string GetHelp(){
|
|
return ("Syntax: unallow <name>\n\n"
|
|
"Removes a name from the list of names which may be used by\n"
|
|
"players from banned sites to create a new character.\n"
|
|
"See also:\nletin, wholetin, banish, whobanished, unbanish, "
|
|
"register, unregister, whoregistered");
|
|
}
|