summaryrefslogtreecommitdiff
path: root/src/net/eathena/mailhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/mailhandler.cpp')
-rw-r--r--src/net/eathena/mailhandler.cpp3
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);
}
}