Quantcast

Added feedback for toggling debugging.

KyrosKrane [05-22-18 - 18:35]
Added feedback for toggling debugging.
Filename
Broker_RaidMakeup.lua
diff --git a/Broker_RaidMakeup.lua b/Broker_RaidMakeup.lua
index d6d3d2b..84df34b 100644
--- a/Broker_RaidMakeup.lua
+++ b/Broker_RaidMakeup.lua
@@ -76,6 +76,11 @@ function BRM:DebugPrint(...)
 	end
 end -- BRM:DebugPrint

+-- Print regular output to the chat frame.
+function BRM:ChatPrint(...)
+	print ("|cff" .. "0066ff" .. "BRM:|r", ...)
+end -- BRM:DebugPrint
+

 --#########################################
 --# Constants
@@ -109,9 +114,11 @@ SlashCmdList.BRM = function (...) BRM:HandleCommandLine(...) end

 function BRM:HandleCommandLine()
 	BRM.DebugMode = not BRM.DebugMode
+	BRM:ChatPrint("Printing debug statements is now " .. BRM.DebugMode and "on." or "off.")
 end
 --@end-alpha@

+
 --#########################################
 --# Variables for tracking raid members
 --#########################################