diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-27 21:57:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-27 21:57:09 +0300 |
commit | d0866a481199f01b68c00a319749f110f0439417 (patch) | |
tree | 5cb22903974592609775fbb3d81575fcb3a71f9f /src/net | |
parent | cff8879242e1f692dee58ac764c5a54da1a996cd (diff) | |
download | manaverse-d0866a481199f01b68c00a319749f110f0439417.tar.gz manaverse-d0866a481199f01b68c00a319749f110f0439417.tar.bz2 manaverse-d0866a481199f01b68c00a319749f110f0439417.tar.xz manaverse-d0866a481199f01b68c00a319749f110f0439417.zip |
Add into mail message field with date in string format.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/mailhandler.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/eathena/mailhandler.cpp b/src/net/eathena/mailhandler.cpp index 840f53e27..1a24fcc86 100644 --- a/src/net/eathena/mailhandler.cpp +++ b/src/net/eathena/mailhandler.cpp @@ -34,6 +34,8 @@ #include "resources/notifytypes.h" +#include "utils/stringutils.h" + #include "debug.h" extern Net::MailHandler *mailHandler; @@ -139,6 +141,7 @@ void MailHandler::processMailList(Net::MessageIn &msg) mail->unread = msg.readUInt8("unread flag") ? true : false; mail->sender = msg.readString(24, "sender name"); mail->time = msg.readInt32("time stamp"); + mail->strTime = timeToStr(mail->time); mailWindow->addMail(mail); } } |