diff options
author | sfan5 <sfan5@live.de> | 2022-04-27 19:55:13 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-04-28 20:05:26 +0200 |
commit | a65f6f07f3a5601207b790edcc8cc945133112f7 (patch) | |
tree | 976d7cfa2b8c9a693bdd3f6b0e579b84590d41d8 /src/serverenvironment.cpp | |
parent | 00f71c3b9d35e1cdd5aa62491a46068358aa8b2a (diff) | |
download | minetest-a65f6f07f3a5601207b790edcc8cc945133112f7.tar.gz minetest-a65f6f07f3a5601207b790edcc8cc945133112f7.tar.bz2 minetest-a65f6f07f3a5601207b790edcc8cc945133112f7.zip |
Clean up some auth packet handling related code
Diffstat (limited to 'src/serverenvironment.cpp')
-rw-r--r-- | src/serverenvironment.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/serverenvironment.cpp b/src/serverenvironment.cpp index 34a1e33e5..f8d84604b 100644 --- a/src/serverenvironment.cpp +++ b/src/serverenvironment.cpp @@ -552,10 +552,8 @@ bool ServerEnvironment::removePlayerFromDatabase(const std::string &name) void ServerEnvironment::kickAllPlayers(AccessDeniedCode reason, const std::string &str_reason, bool reconnect) { - for (RemotePlayer *player : m_players) { - m_server->DenyAccessVerCompliant(player->getPeerId(), - player->protocol_version, reason, str_reason, reconnect); - } + for (RemotePlayer *player : m_players) + m_server->DenyAccess(player->getPeerId(), reason, str_reason, reconnect); } void ServerEnvironment::saveLoadedPlayers(bool force) |