- foreach ($this->aliases as $alias) {
-
- if (!Nickname::isValid($alias)) {
- // TRANS: Client error shown when providing an invalid alias during group creation.
- // TRANS: %s is the invalid alias.
- $this->clientError(sprintf(_('Invalid alias: "%s".'), $alias), 403);
- }
- if ($this->groupNicknameExists($alias)) {
- // TRANS: Client error displayed when trying to use an alias during group creation that is already in use.
- // TRANS: %s is the alias that is already in use.
- $this->clientError(sprintf(_('Alias "%s" already in use. Try another one.'), $alias), 403);
- }
-
- // XXX assumes alphanum nicknames
-
- if (strcmp($alias, $this->nickname) == 0) {
- // TRANS: Client error displayed when trying to use an alias during group creation that is the same as the group's nickname.
- $this->clientError(_('Alias can\'t be the same as nickname.'), 403);
- }
- }
-