public void JoinLobby(int lobby) { InTrainingLobby = false; Program.GameStarted = false; if (SteamMatches.InLobby()) { try { SteamMatches.LeaveLobby(); } catch { } } ; SteamMatches.JoinLobby(lobby, OnJoinLobby, OnLobbyChatUpdate, OnLobbyChatMsg, OnLobbyDataUpdate); }