fix(conf): Missing conf + rename other conf

This commit is contained in:
BarbzYHOOL
2020-03-22 22:55:51 +01:00
parent 24e4e29ae8
commit 925a4cc672
2 changed files with 12 additions and 6 deletions

View File

@@ -4,13 +4,19 @@
# SOLO LFG # SOLO LFG
################################################################################################### ###################################################################################################
# EnableSoloLfg # SoloLFG.Enable
# Description: Enable the module # Description: Enable the module
# Default: 1 - (Enabled) # Default: 1 - (Enabled)
# 0 - (Disabled) # 0 - (Disabled)
LFG.SoloMode = 1 SoloLFG.Enable = 1
# SoloLFG.Announce
# Description: Announce the module
# Default: 1 - (Enabled)
# 0 - (Disabled)
################################################################################################### SoloLFG.Announce = 1
###################################################################################################

View File

@@ -25,8 +25,8 @@ public:
// Announce Module // Announce Module
if (sConfigMgr->GetBoolDefault("SoloLFG.Announce", true)) 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. // to the player variable to tell the compiler it is fine not to use it.
void OnLogin(Player* player) void OnLogin(Player* player)
{ {
if (sConfigMgr->GetIntDefault("LFG.SoloMode", true)) if (sConfigMgr->GetIntDefault("SoloLFG.Enable", true))
{ {
if (!sLFGMgr->IsSoloLFG()) if (!sLFGMgr->IsSoloLFG())
{ {