don't allow normal channels to have the name 'sys'.

This commit is contained in:
friendica 2014-03-23 18:45:42 -07:00
parent 7575ff11fb
commit 350624e993

View File

@ -177,6 +177,11 @@ function create_identity($arr) {
return $ret; return $ret;
} }
if($nick === 'sys' && (! ($pageflags & PAGE_SYSTEM))) {
$ret['message'] = t('Reserved nickname. Please choose another.');
return $ret;
}
if(check_webbie(array($nick)) !== $nick) { if(check_webbie(array($nick)) !== $nick) {
$ret['message'] = t('Nickname has unsupported characters or is already being used on this site.'); $ret['message'] = t('Nickname has unsupported characters or is already being used on this site.');
return $ret; return $ret;