diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-08-12 11:55:51 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-08-12 11:55:51 +0300 |
commit | 7aa72c56b6a3d3af8a7dbef36d3a71fa311a7242 (patch) | |
tree | 7d4be0b6e2c2734eacf6a8adcf4d12e8e0966e55 /src/game.cpp | |
parent | 3028bbb95bb7f61bd7756527aaa5513f1e500ccd (diff) | |
parent | 5784c14ab798847248e4682ef28434767a549fc6 (diff) | |
download | minetest-7aa72c56b6a3d3af8a7dbef36d3a71fa311a7242.tar.gz minetest-7aa72c56b6a3d3af8a7dbef36d3a71fa311a7242.tar.bz2 minetest-7aa72c56b6a3d3af8a7dbef36d3a71fa311a7242.zip |
Merge remote-tracking branch 'speedprog/banByIp'
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index 147a1fa07..a3a5f424a 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1062,6 +1062,14 @@ void the_game( { //std::cerr<<"frame"<<std::endl; + if(client.accessDenied()) + { + error_message = L"Access denied. Reason: " + +client.accessDeniedReason(); + std::cout<<DTIME<<wide_to_narrow(error_message)<<std::endl; + break; + } + if(g_gamecallback->disconnect_requested) { g_gamecallback->disconnect_requested = false; |