https://gitlab.synchro.net/main/sbbs/-/commit/e5bc41736567f0851752c68e
Modified Files:
ctrl/text.dat docs/v322_new.md exec/load/text.js user_info_prompts.js src/sbbs3/js_bbs.cpp js_system.cpp newuser.cpp text.h text_defaults.c text_id.c userdat.c userdat.h
Log Message:
New user prompts: say why a name was rejected
Every rejected new user alias, real name or handle got the same message,
"You can't use that name (duplicate or invalid)", leaving a caller who
typed a single-word real name no hint that a last name was required.
check_name() and check_realname() now take an optional reason pointer
and set it to a text.dat string ID when returning false, as check_pass() already does. New strings: NameTooShort, NameHasInvalidChars, NameHasExtraSpaces, NameMustBeginWithLetter, RealNameNeedsSpace,
NameNotAllowed (name.can, QWK ID, alias.cfg) and NameAlreadyInUse.
New bbs.check_name() and bbs.check_realname() JS methods display the
reason on failure, as bbs.check_password() does; user_info_prompts.js
uses them for the alias and real name prompts, and the specific strings
for the handle prompt. system.check_name() and system.check_realname()
are unchanged, and YouCantUseThatName remains for callers that only have
a pass/fail result.
Also fix the handle prompt's 0xFF test, added in 53fc3e4da7 (2026-01-10): indexOf(0xff) searched for the string "255", so a handle containing
"255" was rejected while one containing an actual 0xFF character was
accepted.
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net