Skip to content

Commit

Permalink
Fixed broken email check
Browse files Browse the repository at this point in the history
If hotmail check is disabled then it would return false anyways, which
was a type. Fixed now.
  • Loading branch information
Casper committed Apr 7, 2016
1 parent bcfb20e commit b6c01fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Binary file added .vs/LowDig/v14/.suo
Binary file not shown.
Binary file added LowDig/Newtonsoft.Json.dll
Binary file not shown.
10 changes: 5 additions & 5 deletions LowDig/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ private bool IsEmailGood(string address)
{
if (!Functions.IsProperEmail(address))
return false;

if (mSettings.checkHotmail && !Hotmail.IsAvailable(address))
return false;

if (mSettings.checkHotmail && Hotmail.IsAvailable(address))
return true;

return false;
return true;
}


Expand All @@ -158,7 +158,7 @@ private void ParseResponse(object o, DownloadStringCompletedEventArgs e, string
string accountName = Functions.GetStringBetween(pageSource, "<title>", "</title>")
.Replace("Steam Community :: ", "");

if (!string.IsNullOrEmpty(accountName) && accountName.Length > 5)
if (!string.IsNullOrEmpty(accountName) && accountName.Length >= 3)
{
/*Format email and check if it looks okay*/
string accountEmail = string.Format("{0}@hotmail.com", accountName);
Expand Down

0 comments on commit b6c01fe

Please sign in to comment.