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

Don't allow new user's alias to match anything already in the ctrl/alias.cfg.

parent de18f329
No related branches found
No related tags found
No related merge requests found
......@@ -197,6 +197,7 @@ BOOL sbbs_t::newuser()
getstr(useron.alias,LEN_ALIAS,kmode);
truncsp(useron.alias);
if(useron.alias[0]<=SP || !isalpha(useron.alias[0])
|| alias(&cfg,useron.alias,tmp)!=useron.alias
|| !stricmp(useron.alias,cfg.sys_id)
|| strchr(useron.alias,0xff)
|| matchuser(&cfg,useron.alias,TRUE /* sysop_alias */)
......
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