Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore (lfgsolo): clean up #120

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/server/game/DungeonFinding/LFGScripts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include "LFGScripts.h"
#include "Common.h"
#include "Config.h"
#include "Group.h"
#include "LFGMgr.h"
#include "Log.h"
Expand Down Expand Up @@ -52,6 +53,14 @@ void LFGPlayerScript::OnLogout(Player* player)

void LFGPlayerScript::OnLogin(Player* player, bool /*loginFirst*/)
{
if (sConfigMgr->GetIntDefault("SoloLFG.Enable", true))
{
if (!sLFGMgr->IsSoloLFG())
{
sLFGMgr->ToggleSoloLFG();
}
}

if (!sLFGMgr->isOptionEnabled(LFG_OPTION_ENABLE_DUNGEON_FINDER | LFG_OPTION_ENABLE_RAID_BROWSER))
return;

Expand Down
53 changes: 0 additions & 53 deletions src/server/scripts/Custom/Lfg_Solo.cpp

This file was deleted.

2 changes: 0 additions & 2 deletions src/server/scripts/Custom/custom_script_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@
*/

// This is where scripts' loading functions should be declared:
void AddLfgSoloScripts();

// The name of this function should match:
// void Add${NameOfDirectory}Scripts()
void AddCustomScripts()
{
AddLfgSoloScripts();
}
7 changes: 0 additions & 7 deletions src/server/worldserver/worldserver.conf.dist
Original file line number Diff line number Diff line change
Expand Up @@ -4159,12 +4159,5 @@ Metric.OverallStatusInterval = 1

SoloLFG.Enable = 1

# SoloLFG.Announce
# Description: Announce the module.
# Default: 1 - (Enabled)
# 0 - (Disabled)

SoloLFG.Announce = 1

#
###################################################################################################
Loading