Quantcast

First pass at adding slash commands

KyrosKrane [07-05-15 - 22:20]
First pass at adding slash commands
Filename
AnnoyingPopupRemover.lua
diff --git a/AnnoyingPopupRemover.lua b/AnnoyingPopupRemover.lua
index febcbd1..fbcfb19 100644
--- a/AnnoyingPopupRemover.lua
+++ b/AnnoyingPopupRemover.lua
@@ -192,3 +192,12 @@ if locale == "enUS" or locale == "enGB" then
 -- elseif locale == "deDE" then
 	-- L["foobar"] = "German here";
 end
+
+
+-- Slash command handling
+SlashCmdList.APR = function (...) HandleCommandLine(...) end
+SLASH_APR1 = "/apr"
+
+function HandleCommandLine(...)
+	PrintVarArgs(...);
+end -- HandleCommandLine()