diff --git a/conf/mod_aoe_loot.conf.dist b/conf/mod_aoe_loot.conf.dist index a4cc346..4b3c64c 100644 --- a/conf/mod_aoe_loot.conf.dist +++ b/conf/mod_aoe_loot.conf.dist @@ -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. diff --git a/src/aoe_loot.cpp b/src/aoe_loot.cpp index b4136ff..9949d2f 100644 --- a/src/aoe_loot.cpp +++ b/src/aoe_loot.cpp @@ -116,7 +116,8 @@ void AoeLootPlayer::OnLogin(Player* player) { if (sConfigMgr->GetOption("AOELoot.Enable", true)) { - ChatHandler(player->GetSession()).PSendSysMessage(AOE_ACORE_STRING_MESSAGE); + if (sConfigMgr->GetOption("AOELoot.Message", true)) + ChatHandler(player->GetSession()).PSendSysMessage(AOE_ACORE_STRING_MESSAGE); } }