Quantcast

refactor socketing to local function

Kevin Gilbert [08-25-16 - 21:38]
refactor socketing to local function
Filename
ArtifactMenu.lua
diff --git a/ArtifactMenu.lua b/ArtifactMenu.lua
index 587f196..057f819 100644
--- a/ArtifactMenu.lua
+++ b/ArtifactMenu.lua
@@ -1,6 +1,11 @@
 LASH_ARTIFACTMENU1, SLASH_ARTIFACTMENU2 = '/artifact', '/am';
-function SlashCmdList.ARTIFACTMENU(msg, editBox)
+
+local function openWeaponSockets()
     SocketInventoryItem(16);
+end
+
+function SlashCmdList.ARTIFACTMENU(msg, editBox)
+    openWeaponSockets();
     print("Opening ArtifactMenu...");
 end