Merge branch 'master' of https://github.com/Madpeterz/SecondBot
This commit is contained in:
commit
473039001d
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue