From 48570f8ce3114f77ffa8d79c86e419b4cf7d12a7 Mon Sep 17 00:00:00 2001 From: KyrosKrane Date: Tue, 22 May 2018 01:38:10 -0500 Subject: [PATCH] Added command-line toggle for debugging info --- Broker_RaidMakeup.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 --######################################### -- 1.7.9.5