From 18c0454d7fa1fa23b1e904e4fc30e70ca596be3e Mon Sep 17 00:00:00 2001 From: KyrosKrane Date: Tue, 7 Jul 2015 22:59:09 +0400 Subject: [PATCH] Added command-line debug toggle --- AnnoyingPopupRemover.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/AnnoyingPopupRemover.lua b/AnnoyingPopupRemover.lua index af67762..40ce57e 100644 --- a/AnnoyingPopupRemover.lua +++ b/AnnoyingPopupRemover.lua @@ -196,6 +196,15 @@ function APR:HandleCommandLine(msg, editbox) APR:TogglePopup(Line[2], Line[1]) return; end + -- Undocumented command to toggle the debug state from the command line. + elseif "debug" == Line[1] then + if "on" == Line[2] then + APR.DebugMode = true; + return; + elseif "off" == Line[2] then + APR.DebugMode = false; + return; + end end elseif Line[1] then if "status" == Line[1] then -- 1.7.9.5