Commit c0dda5ee authored by nanahira's avatar nanahira

add auto quit

parent ca61022e
......@@ -215,6 +215,10 @@ namespace WindBot.Game
{
_room.IsReady[pos] = false;
_room.Names[pos] = null;
if (state == (int)PlayerChange.Leave && Config.GetBool("AutoQuit", false)) {
Connection.Close();
return;
}
}
if (_room.IsHost && _room.IsReady[0] && _room.IsReady[1])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment