index SlashCmdList with name, not command
Kevin Gilbert [08-25-16 - 20:26]
index SlashCmdList with name, not command
diff --git a/ArtifactMenu.lua b/ArtifactMenu.lua
index bc34e9c..cee1c5b 100644
--- a/ArtifactMenu.lua
+++ b/ArtifactMenu.lua
@@ -1,8 +1,8 @@
-SLASH_ARTIFACTMENU, SLASH_ARTIFACTMENUSHORT = '/artifact', '/am';
+SLASH_ARTIFACTMENU1, SLASH_ARTIFACTMENU2 = '/artifact', '/am';
+
local function openWeaponSockets(msg, editbox)
- /run SocketInventoryItem(16);
+ SocketInventoryItem(16);
end
-SlashCmdList[SLASH_ARTIFACTMENU] = openWeaponSockets;
-SlashCmdList[SLASH_ARTIFACTMENUSHORT] = openWeaponSockets;
+SlashCmdList["ARTIFACTMENU"] = openWeaponSockets;