Preparing guest user restrictions when joining games.
This commit is contained in:
+5
-4
@@ -295,10 +295,11 @@ JoinGameAck ::= SEQUENCE {
|
||||
|
||||
JoinGameFailed ::= SEQUENCE {
|
||||
joinGameFailureReason ENUMERATED {
|
||||
invalidGame (1),
|
||||
gameIsFull (2),
|
||||
gameIsRunning (3),
|
||||
invalidPassword (4)
|
||||
invalidGame (1),
|
||||
gameIsFull (2),
|
||||
gameIsRunning (3),
|
||||
invalidPassword (4),
|
||||
notAllowedAsGuest (5)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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."),
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user