mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-24 00:04:07 +01:00
Changing a player name (using 'set') no longer allows two-word names (thanks Slicer)
This commit is contained in:
parent
cc5a63d732
commit
1de1a8c477
3 changed files with 7 additions and 1 deletions
|
|
@ -257,6 +257,10 @@ int valid_name(char *newname)
|
|||
if (!vowels)
|
||||
return (0);
|
||||
|
||||
/* check spaces */
|
||||
if (strchr(newname, ' '))
|
||||
return (0);
|
||||
|
||||
/* return valid if list doesn't exist */
|
||||
if (invalid_list == NULL || num_invalid < 1)
|
||||
return (1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue