don't allow normal channels to have the name 'sys'.
This commit is contained in:
parent
7575ff11fb
commit
350624e993
@ -177,6 +177,11 @@ function create_identity($arr) {
|
||||
return $ret;
|
||||
}
|
||||
|
||||
if($nick === 'sys' && (! ($pageflags & PAGE_SYSTEM))) {
|
||||
$ret['message'] = t('Reserved nickname. Please choose another.');
|
||||
return $ret;
|
||||
}
|
||||
|
||||
if(check_webbie(array($nick)) !== $nick) {
|
||||
$ret['message'] = t('Nickname has unsupported characters or is already being used on this site.');
|
||||
return $ret;
|
||||
|
Reference in New Issue
Block a user