summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-02-28 23:09:03 -0500
committerAdam <Adam@anope.org>2013-02-28 23:09:03 -0500
commit6808498ead9649884bd0efc68371156b08c7f581 (patch)
tree932fd0374948a29170659bbc7885f691b91fe5df
parent8561941e222cfeef8d99e93782d7f7e146e60932 (diff)
Fix entrymsg's creation time being reset from restarts
-rw-r--r--modules/commands/cs_entrymsg.cpp5
1 files changed, 4 insertions, 1 deletions
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<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;
}