mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
Query fix.
This commit is contained in:
parent
f2572fdda0
commit
c02dcf45a0
1 changed files with 1 additions and 1 deletions
|
|
@ -4870,7 +4870,7 @@ void ObjectMgr::ReturnOrDeleteOldMails(bool serverUp)
|
|||
sLog.outDebug("Returning mails current time: hour: %d, minute: %d, second: %d ", localtime(&basetime)->tm_hour, localtime(&basetime)->tm_min, localtime(&basetime)->tm_sec);
|
||||
//delete all old mails without item and without body immediately, if starting server
|
||||
if (!serverUp)
|
||||
CharacterDatabase.PExecute("DELETE FROM mail WHERE expire_time < '" UI64FMTD "' AND has_items = '0' AND itemTextId = 0", (uint64)basetime);
|
||||
CharacterDatabase.PExecute("DELETE FROM mail WHERE expire_time < '" UI64FMTD "' AND has_items = '0' AND body = ''", (uint64)basetime);
|
||||
// 0 1 2 3 4 5 6 7 8
|
||||
QueryResult* result = CharacterDatabase.PQuery("SELECT id,messageType,sender,receiver,has_items,expire_time,cod,checked,mailTemplateId FROM mail WHERE expire_time < '" UI64FMTD "'", (uint64)basetime);
|
||||
if ( !result )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue