Skip to content

Commit

Permalink
Remove server-side check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pentarctagon committed Jun 28, 2019
1 parent 1186244 commit 63d1422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/server.cpp
Expand Up @@ -1462,7 +1462,7 @@ void server::handle_join_game(socket_ptr socket, simple_wml::node& join)
send_server_message(socket, "You are banned from this game.");
async_send_doc(socket, games_and_users_list_);
return;
} else if(!observer && !g->password_matches(password)) {
} else if(!g->password_matches(password)) {
WRN_SERVER << client_address(socket) << "\t" << player_connections_.find(socket)->info().name()
<< "\tattempted to join game:\t\"" << g->name() << "\" (" << game_id << ") with bad password\n";
async_send_doc(socket, leave_game_doc);
Expand Down

0 comments on commit 63d1422

Please sign in to comment.