mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-22 15:16:15 -08:00
Fix dynamic user limit settings
PR #2220 removed the ability to be able to change the max user limit count while the server is running requiring a restart to make the settings change. This PR reverts the behavior back to how it operated prior to the PR.
This commit is contained in:
@@ -384,7 +384,7 @@ Response::ResponseCode Server_ProtocolHandler::cmdPing(const Command_Ping & /*cm
|
||||
Response::ResponseCode Server_ProtocolHandler::cmdLogin(const Command_Login &cmd, ResponseContainer &rc)
|
||||
{
|
||||
// limit the number of users that can connect to the server based on configuration settings
|
||||
if (server->getmaxUserLimitEnabled()) {
|
||||
if (server->getMaxUserLimitEnabled()) {
|
||||
if (server->getUsersCount() >= server->getMaxUserLimit()) {
|
||||
qDebug() << "Max Users Total Limit Reached, please increase the max_users_total setting.";
|
||||
return Response::RespServerFull;
|
||||
|
||||
Reference in New Issue
Block a user