aboutsummaryrefslogtreecommitdiffstats
path: root/include/identity.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-03-23 18:45:42 -0700
committerfriendica <info@friendica.com>2014-03-23 18:45:42 -0700
commit350624e993ebc3693350d74ce06fb35fc73b4d3c (patch)
treefd2abc11786c094d19ea3adf18e3cadcfe0f1ebf /include/identity.php
parent7575ff11fb06c03364fd0cb15a08e8aebbfc2e41 (diff)
downloadvolse-hubzilla-350624e993ebc3693350d74ce06fb35fc73b4d3c.tar.gz
volse-hubzilla-350624e993ebc3693350d74ce06fb35fc73b4d3c.tar.bz2
volse-hubzilla-350624e993ebc3693350d74ce06fb35fc73b4d3c.zip
don't allow normal channels to have the name 'sys'.
Diffstat (limited to 'include/identity.php')
-rw-r--r--include/identity.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/identity.php b/include/identity.php
index c25a3da43..c8a925dac 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -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;