diff --git a/SecondBotEvents/Commands/Inventory.cs b/SecondBotEvents/Commands/Inventory.cs index a2db6b1..21d4fd6 100644 --- a/SecondBotEvents/Commands/Inventory.cs +++ b/SecondBotEvents/Commands/Inventory.cs @@ -20,14 +20,15 @@ namespace SecondBotEvents.Commands [ReturnHintsFailure("No action")] [ReturnHintsFailure("Events service is not running")] [ReturnHints("Event added")] - [ArgHints("inventoryType", "What type to watch for", "Text", "texture", new string[] { "texture","sound","callcard","landmark","clothing", - "object","notecard","lsltext","lslbyte","animation","gesture","mesh" })] + [ArgHints("inventoryType", "What type to watch for", "Text", "Texture", new string[] { "Texture","Sound","Callcard","Landmark","Clothing", + "Object","Notecard","Lsltext","Lslbyte","Animation","Gesture","Mesh" })] [ArgHints("outputTarget", "Where to send the updates to", "SMART")] [CmdTypeSet()] public object SetInventoryUpdate(string inventoryType, string outputTarget) { if (master.EventsService.isRunning() == true) { + inventoryType = inventoryType.ToLower().FirstCharToUpper(); master.EventsService.AddInventoryEvent(inventoryType, outputTarget); return BasicReply("Ok"); } diff --git a/SecondBotEvents/Services/EventsService.cs b/SecondBotEvents/Services/EventsService.cs index a30557b..8fdf29b 100644 --- a/SecondBotEvents/Services/EventsService.cs +++ b/SecondBotEvents/Services/EventsService.cs @@ -28,6 +28,7 @@ namespace SecondBotEvents.Services public void InventoryUpdateEvent(Dictionary detail) { + detail["itemtype"] = detail["itemtype"].ToLower().FirstCharToUpper(); if (InventoryEvents.ContainsKey(detail["itemtype"]) == true) { foreach(string A in InventoryEvents[detail["itemtype"]])