1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 23:03:14 +02:00

Fix entrymsg's creation time being reset from restarts

This commit is contained in:
Adam
2013-02-28 23:09:03 -05:00
parent 8561941e22
commit 6808498ead
+4 -1
View File
@@ -49,6 +49,7 @@ struct EntryMessageList : Serialize::Checker<std::vector<EntryMsg *> >, Extensib
Serializable* EntryMsg::Unserialize(Serializable *obj, Serialize::Data &data)
{
Anope::string sci, screator, smessage;
time_t swhen;
data["ci"] >> sci;
data["creator"] >> screator;
@@ -75,7 +76,9 @@ Serializable* EntryMsg::Unserialize(Serializable *obj, Serialize::Data &data)
ci->Extend("cs_entrymsg", messages);
}
EntryMsg *m = new EntryMsg(ci, screator, smessage);
data["when"] >> swhen;
EntryMsg *m = new EntryMsg(ci, screator, smessage, swhen);
(*messages)->push_back(m);
return m;
}