Skip to content
Snippets Groups Projects
Commit f96c872c authored by rswindell's avatar rswindell
Browse files

Disallows user users from using system's QWK-ID as user name.

parent d5904dbc
No related branches found
No related tags found
No related merge requests found
......@@ -177,6 +177,7 @@ void sbbs_t::newuser()
,K_UPRLWR|(cfg.uq&UQ_NOEXASC)|K_EDIT|K_AUTODEL);
truncsp(useron.alias);
if(useron.alias[0]<=SP || !isalpha(useron.alias[0])
|| !stricmp(useron.alias,cfg.sys_id)
|| strchr(useron.alias,0xff)
|| matchuser(&cfg,useron.alias) || trashcan(useron.alias,"name")
|| (!(cfg.uq&UQ_ALIASES) && !strchr(useron.alias,SP))) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment