Merge pull request #7 from Tikuf42/master
Removed script name extra title text
This commit is contained in:
commit
b293765e8f
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))
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -295,11 +295,11 @@ namespace BSB.bottypes
|
||||||
public bool SendScript(string name, string content, UUID sendToUUID)
|
public bool SendScript(string name, string content, UUID sendToUUID)
|
||||||
{
|
{
|
||||||
bool returnstatus = true;
|
bool returnstatus = true;
|
||||||
name = name + " " + DateTime.Now;
|
|
||||||
Client.Inventory.RequestCreateItem(
|
Client.Inventory.RequestCreateItem(
|
||||||
Client.Inventory.FindFolderForType(AssetType.LSLText),
|
Client.Inventory.FindFolderForType(AssetType.LSLText),
|
||||||
name,
|
name,
|
||||||
name + " Created via SecondBot Script API",
|
name,
|
||||||
AssetType.LSLText,
|
AssetType.LSLText,
|
||||||
UUID.Random(),
|
UUID.Random(),
|
||||||
InventoryType.LSL,
|
InventoryType.LSL,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue