mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
Revert "Changed email return for item that can't be equiped anymore. Before the email was sent with an empty body and the subject was to long to be displayed in the player email. Now the Email is sent with the subject 'Item could not be loaded to inventory.' and the body as the subject message before. (#71)"
This reverts commit f8c3582433d988de98d3e0e9982e8da745710bd5.
This commit is contained in:
parent
61fb736f37
commit
dd152d4e42
1 changed files with 4 additions and 4 deletions
|
|
@ -16489,11 +16489,11 @@ void Player::_LoadInventory(QueryResult* result, uint32 timediff)
|
|||
// send by mail problematic items
|
||||
while (!problematicItems.empty())
|
||||
{
|
||||
std::string subject = "Item could not be loaded to inventory.";
|
||||
std::string content = GetSession()->GetMangosString(LANG_NOT_EQUIPPED_ITEM);
|
||||
std::string subject = GetSession()->GetMangosString(LANG_NOT_EQUIPPED_ITEM);
|
||||
|
||||
// fill mail
|
||||
MailDraft draft(subject);
|
||||
draft.SetSubjectAndBody(subject,content);
|
||||
MailDraft draft(subject, "There's were problems with equipping item(s).");
|
||||
|
||||
for (int i = 0; !problematicItems.empty() && i < MAX_MAIL_ITEMS; ++i)
|
||||
{
|
||||
Item* item = problematicItems.front();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue