From fc6ae49e042cf4a7af817395ae25b1eba1e5712f Mon Sep 17 00:00:00 2001 From: KyrosKrane Date: Mon, 6 Jul 2015 02:20:12 +0400 Subject: [PATCH] First pass at adding slash commands --- AnnoyingPopupRemover.lua | 9 +++++++++ 1 file changed, 9 insertions(+) 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() -- 1.7.9.5