mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
added ipban support
commands: /#ipban <nick> /#ipunban <ip>
This commit is contained in:
parent
371af9c241
commit
5784c14ab7
11 changed files with 271 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue