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:
parent
50ef9677fe
commit
f814ae795d
2 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue