diff --git a/conf/mod_aoe_loot.conf.dist b/conf/mod_aoe_loot.conf.dist index 8718059..83a1ff3 100644 --- a/conf/mod_aoe_loot.conf.dist +++ b/conf/mod_aoe_loot.conf.dist @@ -24,3 +24,13 @@ # AOELoot.Enable = 1 + +# +# AOELoot.MailEnable +# Description: Enables the sending of mail if there are no spaces in the bags. +# Default: 1 (Enabled) +# Possible values: 0 - (Disabled) +# 1 - (Enabled) +# + +AOELoot.MailEnable = 1 diff --git a/src/AoeLoot_SC.cpp b/src/AoeLoot_SC.cpp index 0cea4d2..6adff8a 100644 --- a/src/AoeLoot_SC.cpp +++ b/src/AoeLoot_SC.cpp @@ -76,7 +76,7 @@ public: player->SendNotifyLootItemRemoved(lootSlot); player->SendLootRelease(player->GetLootGUID()); } - else + else if (sConfigMgr->GetOption("AOELoot.MailEnable", true)) { player->SendItemRetrievalMail(item->itemid, item->count); ChatHandler(player->GetSession()).SendSysMessage(AOE_ITEM_IN_THE_MAIL);