diff --git a/apps/master/MasterServer.cpp b/apps/master/MasterServer.cpp index 317f4174a..0759b578c 100644 --- a/apps/master/MasterServer.cpp +++ b/apps/master/MasterServer.cpp @@ -180,7 +180,7 @@ void MasterServer::Thread() auto addr = packet->systemAddress.ToString(false); if (find(banned.begin(), banned.end(), addr) != banned.end()) // check if address is banned - return true; + return false; luaStuff([&ret, &packet, &sserver, &addr](sol::state &state) { sol::protected_function func = state["OnServerAnnounce"]; diff --git a/files/tes3mp/master/master.lua b/files/tes3mp/master/master.lua index c801f3008..192d55b64 100644 --- a/files/tes3mp/master/master.lua +++ b/files/tes3mp/master/master.lua @@ -186,6 +186,7 @@ function OnServerAnnounce(address, sserver) -- callback print(sserver.name) print(sserver.gamemode) print(sserver.version) + return true end function OnExit() -- callback