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;