aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2013-12-19 21:47:08 +0100
committerKahrl <kahrl@gmx.net>2013-12-19 21:47:08 +0100
commita50db0e824eba8e0e265099df256cafc333113d7 (patch)
treea213a68db192659c07942ca099d0cd7d57bd21dd
parente1f9ba435f8c0cca90f2d3df36e9aa82763e1da0 (diff)
downloadminetest-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.cpp6
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;