feat(Core/LFG): Implement Debug.LFG config option (#24854)

This commit is contained in:
dataCenter430
2026-02-24 21:39:24 -05:00
committed by GitHub
parent e17df40a57
commit f88fda4f19
6 changed files with 27 additions and 4 deletions
+11 -3
View File
@@ -42,7 +42,7 @@
namespace lfg
{
LFGMgr::LFGMgr(): m_lfgProposalId(1), m_options(sWorld->getIntConfig(CONFIG_LFG_OPTIONSMASK)), m_Testing(false)
LFGMgr::LFGMgr(): m_lfgProposalId(1), m_options(sWorld->getIntConfig(CONFIG_LFG_OPTIONSMASK)), m_Testing(sWorld->getBoolConfig(CONFIG_DEBUG_LFG))
{
for (uint8 team = 0; team < 2; ++team)
{
@@ -805,8 +805,16 @@ namespace lfg
void LFGMgr::ToggleTesting()
{
m_Testing = !m_Testing;
ChatHandler(nullptr).SendWorldText(m_Testing ? LANG_DEBUG_LFG_ON : LANG_DEBUG_LFG_OFF);
if (sWorld->getBoolConfig(CONFIG_DEBUG_LFG))
{
m_Testing = true;
ChatHandler(nullptr).SendWorldText(LANG_DEBUG_LFG_CONF);
}
else
{
m_Testing = !m_Testing;
ChatHandler(nullptr).SendWorldText(m_Testing ? LANG_DEBUG_LFG_ON : LANG_DEBUG_LFG_OFF);
}
}
/**