This commit is contained in:
Madpeter 2020-05-01 23:28:35 +01:00
commit 473039001d
2 changed files with 3 additions and 3 deletions

View file

@ -38,7 +38,7 @@ namespace BSB.Commands.script
{
if (UUID.TryParse(args[1], out UUID Avatar))
{
return bot.SendScript(attempt_endpoint.Split('/').LastOrDefault(), endpoint_checks.Content, Avatar);
return bot.SendScript(attempt_endpoint.Split('/').LastOrDefault().Replace("%20", " "), endpoint_checks.Content, Avatar);
}
else
{

View file

@ -299,11 +299,11 @@ namespace BSB.bottypes
public bool SendScript(string name, string content, UUID sendToUUID)
{
bool returnstatus = true;
name = name + " " + DateTime.Now;
Client.Inventory.RequestCreateItem(
Client.Inventory.FindFolderForType(AssetType.LSLText),
name,
name + " Created via SecondBot Script API",
name,
AssetType.LSLText,
UUID.Random(),
InventoryType.LSL,