Ejemplo n.º 1
0
        public object InventoryFoldersLimited(string targetfolder, string token)
        {
            if (tokens.Allow(token, "inventory", "InventoryFoldersLimited", handleGetClientIP()) == false)
            {
                return(Failure("Token not accepted", "InventoryFoldersLimited"));
            }
            string reply = HelperInventory.MapFolderJson(bot, targetfolder, false);

            if (reply != null)
            {
                return(BasicReply(reply, "InventoryFoldersLimited"));
            }
            return(Failure("Error", "InventoryFoldersLimited"));
        }
Ejemplo n.º 2
0
 public override bool CallFunction(string[] args)
 {
     if (base.CallFunction(args) == true)
     {
         if (UUID.TryParse(args[0], out UUID targetavatar) == true)
         {
             bot.GetClient.Self.InstantMessage(targetavatar, "Building inventory folder map now [This might take a while]");
             string reply = HelperInventory.MapFolderHumanReadable(bot);
             bot.SendNotecard("Inventory Folders", reply, targetavatar);
             return(true);
         }
         else
         {
             string reply = HelperInventory.MapFolderJson(bot);
             return(bot.GetCommandsInterface.SmartCommandReply(true, args[0], reply, CommandName));
         }
     }
     return(false);
 }