From 925a4cc6726bba3740c5da1bc74384714f151cce Mon Sep 17 00:00:00 2001 From: BarbzYHOOL Date: Sun, 22 Mar 2020 22:55:51 +0100 Subject: [PATCH] fix(conf): Missing conf + rename other conf --- conf/SoloLfg.conf.dist | 12 +++++++++--- src/Lfg_Solo.cpp | 6 +++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/conf/SoloLfg.conf.dist b/conf/SoloLfg.conf.dist index 5033877..569abc1 100644 --- a/conf/SoloLfg.conf.dist +++ b/conf/SoloLfg.conf.dist @@ -4,13 +4,19 @@ # SOLO LFG ################################################################################################### -# EnableSoloLfg +# SoloLFG.Enable # Description: Enable the module # Default: 1 - (Enabled) # 0 - (Disabled) -LFG.SoloMode = 1 +SoloLFG.Enable = 1 +# SoloLFG.Announce +# Description: Announce the module +# Default: 1 - (Enabled) +# 0 - (Disabled) -################################################################################################### \ No newline at end of file +SoloLFG.Announce = 1 + +################################################################################################### diff --git a/src/Lfg_Solo.cpp b/src/Lfg_Solo.cpp index 07f688d..ee5f70e 100644 --- a/src/Lfg_Solo.cpp +++ b/src/Lfg_Solo.cpp @@ -25,8 +25,8 @@ public: // Announce Module if (sConfigMgr->GetBoolDefault("SoloLFG.Announce", true)) { - ChatHandler(player->GetSession()).SendSysMessage("This server is running the |cff4CFF00Solo Dungeon Finder |rmodule."); - } + ChatHandler(player->GetSession()).SendSysMessage("This server is running the |cff4CFF00Solo Dungeon Finder |rmodule."); + } } }; @@ -39,7 +39,7 @@ public: // to the player variable to tell the compiler it is fine not to use it. void OnLogin(Player* player) { - if (sConfigMgr->GetIntDefault("LFG.SoloMode", true)) + if (sConfigMgr->GetIntDefault("SoloLFG.Enable", true)) { if (!sLFGMgr->IsSoloLFG()) {