Mark servers as password protected on RR_INCORRECT_PASSWORD
This commit is contained in:
parent
8819e633f8
commit
4266f02559
@ -938,6 +938,7 @@ void ClientLobby::connectionRefused(Event* event)
|
||||
}
|
||||
case RR_INCORRECT_PASSWORD:
|
||||
m_server->setReconnectWhenQuitLobby(true);
|
||||
m_server->setIsPasswordProtected(true);
|
||||
STKHost::get()->setErrorMessage(
|
||||
_("Connection refused: Server password is incorrect."));
|
||||
break;
|
||||
|
@ -202,6 +202,8 @@ public:
|
||||
// ------------------------------------------------------------------------
|
||||
virtual void saveServer() const {}
|
||||
// ------------------------------------------------------------------------
|
||||
void setIsPasswordProtected(bool password_protected) { m_password_protected = password_protected; }
|
||||
// ------------------------------------------------------------------------
|
||||
bool reconnectWhenQuitLobby() const { return m_reconnect_when_quit_lobby; }
|
||||
// ------------------------------------------------------------------------
|
||||
void setReconnectWhenQuitLobby(bool val)
|
||||
|
Loading…
Reference in New Issue
Block a user