$msg .= error(sprintf(__('Please enter a valid nick.') . ' ' . __('Use up to 23 letters, numbers, connecting punctuations or spaces for your nickname.'), $nick), true);
}
if (User::whereName($nick)->count() > 0) {
$valid = false;
$msg .= error(sprintf(__('Your nick "%s" already exists.'), $nick), true);
}
} else {
$valid = false;
$msg .= error(sprintf(
__('Your nick "%s" is too short (min. 2 characters).'),
User_validate_Nick($request->input('nick'))
), true);
$msg .= error(__('Please enter a nickname.'), true);
}
if ($request->has('mail') && strlen(strip_request_item('mail')) > 0) {