From 1066eb509c0e6598dc4fec487332fc82bf60fb94 Mon Sep 17 00:00:00 2001 From: Christopher Date: Sun, 28 Jun 2020 14:26:23 +0200 Subject: [PATCH] check the script INVENTORY_TEXTURE, INVENTORY_ALL --- src/TextureFetcher.cs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/TextureFetcher.cs b/src/TextureFetcher.cs index d3af1b8..3b77600 100644 --- a/src/TextureFetcher.cs +++ b/src/TextureFetcher.cs @@ -86,12 +86,18 @@ namespace OpenSim.Modules.TextureFetcher if(assetData != null) { - String script = new ASCIIEncoding().GetString(assetData.Data); + String script = new ASCIIEncoding().GetString(assetData.Data).ToUpper(); - m_log.Info("Script content: " + script); + if (script.Contains("INVENTORY_TEXTURE")) + return true; + + if (script.Contains("INVENTORY_ALL")) + return true; } - - return true; + else + { + return true; + } } return false;