diff options
author | Kahrl <kahrl@gmx.net> | 2013-12-19 21:47:08 +0100 |
---|---|---|
committer | Kahrl <kahrl@gmx.net> | 2013-12-19 21:47:08 +0100 |
commit | a50db0e824eba8e0e265099df256cafc333113d7 (patch) | |
tree | a213a68db192659c07942ca099d0cd7d57bd21dd | |
parent | e1f9ba435f8c0cca90f2d3df36e9aa82763e1da0 (diff) | |
download | minetest-a50db0e824eba8e0e265099df256cafc333113d7.tar.gz minetest-a50db0e824eba8e0e265099df256cafc333113d7.tar.bz2 minetest-a50db0e824eba8e0e265099df256cafc333113d7.zip |
Check for denied access in itemdef/nodedef/media fetch loop
-rw-r--r-- | src/game.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index 6f48870ad..8cf7da1e1 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1215,6 +1215,12 @@ void the_game( break; } // Break conditions + if(client.accessDenied()){ + error_message = L"Access denied. Reason: " + +client.accessDeniedReason(); + errorstream<<wide_to_narrow(error_message)<<std::endl; + break; + } if(!client.connectedAndInitialized()){ error_message = L"Client disconnected"; errorstream<<wide_to_narrow(error_message)<<std::endl; |