1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 17:04:47 +02:00

Store hs_offer data with the correct data type.

This commit is contained in:
Sadie Powell
2025-11-20 23:28:12 +00:00
parent 9cc2ea8a56
commit 20ca0c76e0
+6 -6
View File
@@ -207,12 +207,12 @@ public:
void Serialize(Serializable *obj, Serialize::Data &data) const override
{
const auto *ho = static_cast<const HostOffer *>(obj);
data["ident"] << ho->ident;
data["host"] << ho->host;
data["creator"] << ho->creator;
data["reason"] << ho->reason;
data["created"] << ho->created;
data["expires"] << ho->expires;
data.Store("ident", ho->ident);
data.Store("host", ho->host);
data.Store("creator", ho->creator);
data.Store("reason", ho->reason);
data.Store("created", ho->created);
data.Store("expires", ho->expires);
}
Serializable *Unserialize(Serializable *obj, Serialize::Data &data) const override