Registered Only Server

Allow for registration only server.
This commit is contained in:
woogerboy21 2014-06-30 16:26:57 -04:00
parent 69a8fa0bb1
commit 3c216ac9cd
5 changed files with 14 additions and 2 deletions

View file

@ -1,4 +1,4 @@
/***************************************************************************
/***************************************************************************
* Copyright (C) 2008 by Max-Wilhelm Bruker *
* brukie@gmx.net *
* *
@ -225,7 +225,7 @@ void MainWindow::actAbout()
+ tr("French:") + " Yannick Hammer, Arnaud Faes<br>"
+ tr("Japanese:") + " Nagase Task<br>"
+ tr("Russian:") + " Alexander Davidov<br>"
// + tr("Czech:") + " Ondřej Trhoň<br>"
// + tr("Czech:") + " Ondrej Trhon<br>"
// + tr("Slovak:") + " Ganjalf Rendy<br>"
+ tr("Italian:") + " Luigi Sciolla<br>"
+ tr("Swedish:") + " Jessica Dahl<br>"
@ -261,6 +261,9 @@ void MainWindow::loginError(Response::ResponseCode r, QString reasonStr, quint32
case Response::RespUsernameInvalid:
QMessageBox::critical(this, tr("Error"), tr("Invalid username."));
break;
case Response::RespRegRequired:
QMessageBox::critical(this, tr("Error"), tr("This server requires user registration."));
break;
default:
QMessageBox::critical(this, tr("Error"), tr("Unknown login error: %1").arg(static_cast<int>(r)));
}