[Master] Fix return from isServerValid()

Temporary accept all servers in OnServerAnnnounce
pull/276/head
Koncord 7 years ago
parent 50ef9677fe
commit f814ae795d

@ -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"];

@ -186,6 +186,7 @@ function OnServerAnnounce(address, sserver) -- callback
print(sserver.name)
print(sserver.gamemode)
print(sserver.version)
return true
end
function OnExit() -- callback

Loading…
Cancel
Save