Typo fix in compat code from commit 1d8d01074fdb52946f81110bebf1d001185b394b
authorLoic Blot <loic.blot@unix-experience.fr>
Thu, 17 Aug 2017 17:15:12 +0000 (19:15 +0200)
committerLoic Blot <loic.blot@unix-experience.fr>
Thu, 17 Aug 2017 17:15:12 +0000 (19:15 +0200)
src/network/serverpackethandler.cpp

index b0fb17b72c666968861f15e092535578cf09df66..64c754ee551d444ae7674a951b4da5787db8c682 100644 (file)
@@ -520,7 +520,7 @@ void Server::handleCommand_Init_Legacy(NetworkPacket* pkt)
 
        // Enforce user limit.
        // Don't enforce for users that have some admin right
-       if (m_clients.isUserLimitReached() >= g_settings->getU16("max_users") &&
+       if (m_clients.isUserLimitReached() &&
                        !checkPriv(playername, "server") &&
                        !checkPriv(playername, "ban") &&
                        !checkPriv(playername, "privs") &&