Quantcast

Added command-line toggle for debugging info

KyrosKrane [05-22-18 - 06:38]
Added command-line toggle for debugging info
Filename
Broker_RaidMakeup.lua
diff --git a/Broker_RaidMakeup.lua b/Broker_RaidMakeup.lua
index bcae73d..e05e5ef 100644
--- a/Broker_RaidMakeup.lua
+++ b/Broker_RaidMakeup.lua
@@ -67,7 +67,7 @@ local print = print
 local BRM = { }

 -- Debug settings
-BRM.DebugMode = true
+BRM.DebugMode = false

 -- Print debug output to the chat frame.
 function BRM:DebugPrint(...)
@@ -86,6 +86,18 @@ BRM.Frame, BRM.Events = CreateFrame("Frame"), {}


 --#########################################
+--# Slash command handling
+--#########################################
+
+SLASH_BRM1 = "/brm"
+SlashCmdList.BRM = function (...) BRM:HandleCommandLine(...) end
+
+function BRM:HandleCommandLine()
+	BRM.DebugMode = not BRM.DebugMode
+end
+
+
+--#########################################
 --# Variables for tracking raid members
 --#########################################