Skip to content

Commit 69735f4

Browse files
committed
Fix for hashes
1 parent 34491d6 commit 69735f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/grid-bot/lib/utility/Implementation/ScriptLogger.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public async Task LogScriptAsync(string script, ShardedInteractionContext contex
8282

8383
// Get a SHA256 hash of the script (hex)
8484
var scriptHash = string.Join("", SHA256.HashData(Encoding.UTF8.GetBytes(script)).Select(b => b.ToString("x2")));
85-
if (_scriptsSettings.LoggedScriptHashes.Contains(scriptHash)) return;
85+
if (_scriptHashes.Contains(scriptHash)) return;
8686

8787
// username based off machine info
8888
var username = $"{Environment.MachineName} ({_localIpAddressProvider.AddressV4} / {_localIpAddressProvider.AddressV6})";

0 commit comments

Comments
 (0)