+ if [ "$NICK_REGISTRATION" != on ]; then
+ export ERROR='.register Nickname registration is disabled on this server.'
+ elif [ "$regnick" = Guest ]; then
+ export ERROR='.register The name "Guest" may not be registered as a permanent nickname.'
+ elif [ -z "$regnick" ]; then
+ export ERROR='.register Nicknames must be between 3 and 24 characters long. They may not start with "&", "#", "?", "@", or "+" and they must not contain a "/".'
+ elif [ -d "$userdir" ]; then
+ export ERROR=".register This nickname has already been registered elsewhere."
+ elif mkdir "$userdir"; then