void OnLoggedToBothSteamAndTas() { if (tas.MyUser.SteamID == null) { string token = SteamHelper.GetClientAuthTokenHex(); if (!string.IsNullOrEmpty(token)) { tas.LinkSteam(token); } } foreach (User u in tas.ExistingUsers.Values.ToList().Where(x => x.SteamID != null && friends.Contains(x.SteamID.Value))) { AddFriend(u.Name); } if (Program.Conf.EnableVoiceChat && Environment.OSVersion.Platform != PlatformID.Unix) { Voice.Init(SteamID); } }