Skip to content

Commit

Permalink
changed flag server
Browse files Browse the repository at this point in the history
  • Loading branch information
sp0ok3r committed Oct 27, 2021
1 parent b0da97e commit b057584
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions MercuryBOT/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1589,15 +1589,15 @@ private void CurrentUserSafeUpdater()
picBox_SteamAvatar.ImageLocation = AccountLogin.GetAvatarLink(AccountLogin.CurrentSteamID);
}

if (btnLabel_PersonaAndFlag.Image == null)//disabled temp
if (btnLabel_PersonaAndFlag.Image == null)
{
// try
// {
// byte[] data = Program.Web.DownloadData("https://www.countryflags.io/" + AccountLogin.UserCountry + "/flat/16.png");
// btnLabel_PersonaAndFlag.Image = Image.FromStream(new MemoryStream(data));
//
// }
// catch { }
try
{
byte[] data = new WebClient().DownloadData("https://flagcdn.com/16x12/" + AccountLogin.UserCountry.ToLower() + ".png");
btnLabel_PersonaAndFlag.Image = Image.FromStream(new MemoryStream(data));

}
catch { }
}

// combox_states.SelectedIndex = AccountLogin.steamFriends.GetPersonaState;
Expand Down

0 comments on commit b057584

Please sign in to comment.