mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-27 11:26:10 +01:00
MAJOR UPDATE: Admin Levels split from Mortal Levels
This commit is contained in:
parent
2b30509371
commit
dcba9d6441
77 changed files with 2882 additions and 2067 deletions
14
src/ban.c
14
src/ban.c
|
|
@ -186,7 +186,7 @@ ACMD(do_ban)
|
|||
ban_node->next = ban_list;
|
||||
ban_list = ban_node;
|
||||
|
||||
mudlog(NRM, MAX(LVL_GOD, GET_INVIS_LEV(ch)), TRUE, "%s has banned %s for %s players.",
|
||||
mudlog(NRM, MAX(ADMLVL_GOD, GET_INVIS_LEV(ch)), TRUE, "%s has banned %s for %s players.",
|
||||
GET_NAME(ch), site, ban_types[ban_node->type]);
|
||||
send_to_char(ch, "Site banned.\r\n");
|
||||
write_ban_list();
|
||||
|
|
@ -218,7 +218,7 @@ ACMD(do_unban)
|
|||
}
|
||||
REMOVE_FROM_LIST(ban_node, ban_list, next);
|
||||
send_to_char(ch, "Site unbanned.\r\n");
|
||||
mudlog(NRM, MAX(LVL_GOD, GET_INVIS_LEV(ch)), TRUE, "%s removed the %s-player ban on %s.",
|
||||
mudlog(NRM, MAX(ADMLVL_GOD, GET_INVIS_LEV(ch)), TRUE, "%s removed the %s-player ban on %s.",
|
||||
GET_NAME(ch), ban_types[ban_node->type], ban_node->site);
|
||||
|
||||
free(ban_node);
|
||||
|
|
@ -234,12 +234,12 @@ int valid_name(char *newname)
|
|||
struct descriptor_data *dt;
|
||||
char tempname[MAX_INPUT_LENGTH];
|
||||
|
||||
/* Make sure someone isn't trying to create this same name. We want to do a
|
||||
/* Make sure someone isn't trying to create this same name. We want to do a
|
||||
* 'str_cmp' so people can't do 'Bob' and 'BoB'. The creating login will not
|
||||
* have a character name yet and other people sitting at the prompt won't
|
||||
* have characters yet. New, unindexed characters (i.e., characters who are
|
||||
* in the process of creating) will have an idnum of -1, set by clear_char()
|
||||
* in db.c. If someone is creating a character by the same name as the one
|
||||
* have a character name yet and other people sitting at the prompt won't
|
||||
* have characters yet. New, unindexed characters (i.e., characters who are
|
||||
* in the process of creating) will have an idnum of -1, set by clear_char()
|
||||
* in db.c. If someone is creating a character by the same name as the one
|
||||
* we are checking, then the name is invalid, to prevent character duping.
|
||||
* THIS SHOULD FIX THE 'invalid name' if disconnected from OLC-bug - Welcor */
|
||||
for (dt = descriptor_list; dt; dt = dt->next)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue