From 6808498ead9649884bd0efc68371156b08c7f581 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 28 Feb 2013 23:09:03 -0500 Subject: Fix entrymsg's creation time being reset from restarts --- modules/commands/cs_entrymsg.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/commands/cs_entrymsg.cpp') diff --git a/modules/commands/cs_entrymsg.cpp b/modules/commands/cs_entrymsg.cpp index 6c39016ef..46089cd94 100644 --- a/modules/commands/cs_entrymsg.cpp +++ b/modules/commands/cs_entrymsg.cpp @@ -49,6 +49,7 @@ struct EntryMessageList : Serialize::Checker >, 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; } -- cgit