Fixed one word names for new users

This commit is contained in:
Michiel Broek 2002-08-13 19:40:58 +00:00
parent 0e78ebf32b
commit dd28dc8324
2 changed files with 2 additions and 1 deletions

View File

@ -53,6 +53,7 @@ v0.35.03 06-Jul-2002
Check for existing Unix names now also includes the name ping Check for existing Unix names now also includes the name ping
and services names. and services names.
Check for handle now also checks Unix names. Check for handle now also checks Unix names.
The setting for single usernames does work again.
mbsebbs: mbsebbs:
Check existing usernames now also checks handles. Check existing usernames now also checks handles.

View File

@ -136,7 +136,7 @@ int newuser()
* Check name, duplicate names, unwanted names, single names, they all get * Check name, duplicate names, unwanted names, single names, they all get
* the same errormessage. * the same errormessage.
*/ */
badname = (BadNames(temp) || (CheckName(temp) || (strchr(temp, ' ') == NULL))); badname = (BadNames(temp) || CheckName(temp) || ((strchr(temp, ' ') == NULL) && !CFG.iOneName));
if (badname) { if (badname) {
/* That login name already exists, please choose another one. */ /* That login name already exists, please choose another one. */
language(LIGHTRED, BLACK, 386); language(LIGHTRED, BLACK, 386);