aboutsummaryrefslogtreecommitdiff
path: root/src/network/serverpackethandler.cpp
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2017-08-17 19:15:12 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2017-08-17 19:15:12 +0200
commit8432efa308e0d6c56ad61df189981ed03b0af463 (patch)
tree44e5869e54530c14f664de329e95189bad1b8ffd /src/network/serverpackethandler.cpp
parentb204bc4da91f6f0bf38cc284693450afc5787512 (diff)
downloadminetest-8432efa308e0d6c56ad61df189981ed03b0af463.tar.gz
minetest-8432efa308e0d6c56ad61df189981ed03b0af463.tar.bz2
minetest-8432efa308e0d6c56ad61df189981ed03b0af463.zip
Typo fix in compat code from commit 1d8d01074fdb52946f81110bebf1d001185b394b
Diffstat (limited to 'src/network/serverpackethandler.cpp')
-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 b0fb17b72..64c754ee5 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") &&