aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2017-08-17 19:15:12 +0200
committerSmallJoker <mk939@ymail.com>2018-06-03 17:31:59 +0200
commit12562be393215487280b597b53157c94901e750d (patch)
tree24ae87987b244598a84abfd7a7668cd427784956 /src
parent151c19a6be591d19d83cdd3c69583e7bf0828440 (diff)
downloadminetest-12562be393215487280b597b53157c94901e750d.tar.gz
minetest-12562be393215487280b597b53157c94901e750d.tar.bz2
minetest-12562be393215487280b597b53157c94901e750d.zip
Typo fix in compat code from commit 1d8d01074fdb52946f81110bebf1d001185b394b
Diffstat (limited to 'src')
-rw-r--r--src/network/serverpackethandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/serverpackethandler.cpp b/src/network/serverpackethandler.cpp
index 22456f487..62ffdde17 100644
--- a/src/network/serverpackethandler.cpp
+++ b/src/network/serverpackethandler.cpp
@@ -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") &&