Skip to content

Commit

Permalink
chore. Enable or disable message when logging in (azerothcore#40)
Browse files Browse the repository at this point in the history
pangolp authored Aug 15, 2024
1 parent 7633396 commit 92bf84b
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions conf/mod_aoe_loot.conf.dist
Original file line number Diff line number Diff line change
@@ -25,6 +25,15 @@

AOELoot.Enable = 1

#
# AOELoot.Message
# Description: Enable message on login
# Default: 0 - (Disabled)
# 1 - (Enabled)
#

AOELoot.Message = 1

#
# AOELoot.MailEnable
# Description: Enables the sending of mail if there are no spaces in the bags.
3 changes: 2 additions & 1 deletion src/aoe_loot.cpp
Original file line number Diff line number Diff line change
@@ -116,7 +116,8 @@ void AoeLootPlayer::OnLogin(Player* player)
{
if (sConfigMgr->GetOption<bool>("AOELoot.Enable", true))
{
ChatHandler(player->GetSession()).PSendSysMessage(AOE_ACORE_STRING_MESSAGE);
if (sConfigMgr->GetOption<bool>("AOELoot.Message", true))
ChatHandler(player->GetSession()).PSendSysMessage(AOE_ACORE_STRING_MESSAGE);
}
}

0 comments on commit 92bf84b

Please sign in to comment.