Ignore endpoint name in installed module list

This commit is contained in:
Bridget
2020-04-19 01:39:24 +02:00
parent c7892a792f
commit 1e4e5a8da9

View File

@@ -1,3 +1,4 @@
string ENDPOINT_SCRIPT_NAME = "endpoint.lsl";
string COMMAND = "pkg";
string USAGE = \
"usage: pkg [-h] command [args...]
@@ -68,7 +69,7 @@ string list_installed_modules()
while(count--)
{
string name = llGetInventoryName(INVENTORY_SCRIPT, count);
if(name != llGetScriptName())
if(name != llGetScriptName() && name != ENDPOINT_SCRIPT_NAME)
{
string extension = llGetSubString(name, -4, -1);
if(extension == ".lsl")