Preparing guest user restrictions when joining games.

This commit is contained in:
lotodore
2010-03-28 13:43:42 +00:00
parent 5df5d6609c
commit a8d5e8b20b
3 changed files with 12 additions and 5 deletions
+6 -1
View File
@@ -694,7 +694,7 @@ void startWindowImpl::networkError(int errorID, int /*osErrorID*/) {
break;
case ERR_NET_INVALID_PASSWORD:
{ QMessageBox::warning(this, tr("Network Error"),
tr("Invalid password when joining the game.\nPlease reenter the password and try again."),
tr("Invalid login.\nPlease check your username and password."),
QMessageBox::Close); }
break;
case ERR_NET_INVALID_PASSWORD_STR:
@@ -842,6 +842,11 @@ void startWindowImpl::networkNotification(int notificationId)
tr("Invalid password when joining the game.\nPlease reenter the password and try again."),
QMessageBox::Close); }
break;
case NTF_NET_JOIN_GUEST_FORBIDDEN:
{ QMessageBox::warning(this, tr("Network Notification"),
tr("You cannot join this type of game as guest."),
QMessageBox::Close); }
break;
case NTF_NET_NEW_RELEASE_AVAILABLE:
{ QMessageBox msgBox(QMessageBox::Information, tr("Network Notification"),
tr("A new release of PokerTH is available.<br>Please go to <a href=\"http://www.pokerth.net/\" target=\"_blank\">http://www.pokerth.net</a> and download the latest version."),
+1
View File
@@ -111,6 +111,7 @@
#define NTF_NET_JOIN_GAME_FULL 211
#define NTF_NET_JOIN_ALREADY_RUNNING 212
#define NTF_NET_JOIN_INVALID_PASSWORD 213
#define NTF_NET_JOIN_GUEST_FORBIDDEN 214
// Notifications - version
#define NTF_NET_NEW_RELEASE_AVAILABLE 220