Ignore already registered paths

This commit is contained in:
Anna Puddles
2024-12-13 10:21:52 -05:00
committed by GitHub
parent 0a3dcee15e
commit dc7a818ec0

View File

@@ -1,4 +1,4 @@
/* prim-dns file server v1.1.0
/* prim-dns file server v1.2.0
*
* This script is a request handler script which will serve specially-named
* notecards in the prim's inventory as "files".
@@ -241,7 +241,10 @@ default
{
string path = llJsonGetValue(str, ["params", "path"]);
registered_paths += path;
if (llListFindList(registered_paths, [path]) == -1)
{
registered_paths += path;
}
}
}
}