1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-31 00:45:34 +00:00

[Master] Fix return from isServerValid()

Temporary accept all servers in OnServerAnnnounce
This commit is contained in:
Koncord 2017-09-13 19:11:50 +08:00
parent 50ef9677fe
commit f814ae795d
2 changed files with 2 additions and 1 deletions

View file

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

View file

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