mirror of
https://github.com/azerothcore/mod-solo-lfg
synced 2025-11-29 15:58:17 +08:00
update fix error
This commit is contained in:
@@ -16,19 +16,20 @@ class lfg_solo : public PlayerScript
|
||||
public:
|
||||
lfg_solo() : PlayerScript("lfg_solo") { }
|
||||
|
||||
void OnLogin(Player* player, bool /*loginFirst*/)
|
||||
void OnLogin(Player* player)
|
||||
{
|
||||
if (sConfigMgr->GetIntDefault("LFG.SoloMode", true))
|
||||
{
|
||||
if (sConfigMgr->GetBoolDefault("LFG.SoloMode", true))
|
||||
if (!sLFGMgr->IsSoloLFG())
|
||||
{
|
||||
if (!sLFGMgr->IsSoloLFG())
|
||||
{
|
||||
sLFGMgr->ToggleSoloLFG();
|
||||
}
|
||||
sLFGMgr->ToggleSoloLFG();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
void AddScLfg_SoloScripts()
|
||||
{
|
||||
new lfg_solo();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user