check the script INVENTORY_TEXTURE, INVENTORY_ALL

master
Christopher 2020-06-28 14:26:23 +02:00
parent 58bbb9487e
commit 1066eb509c
1 changed files with 10 additions and 4 deletions

View File

@ -86,12 +86,18 @@ namespace OpenSim.Modules.TextureFetcher
if(assetData != null) 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;
}
else
{
return true;
} }
return true;
} }
return false; return false;