diff options
author | Sadie Powell <sadie@witchery.services> | 2025-05-17 15:05:13 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-05-17 15:05:13 +0100 |
commit | 0fc1eb313369a0b50c6a7f246966bec72a63ed69 (patch) | |
tree | 800f7a84ae9f5e3ba500d70b6500bc16770bec3e /src/regchannel.cpp | |
parent | 0ac9d70d63801acb650bca723d7fec7860dd72a9 (diff) |
Rename one last use of time_registered.
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r-- | src/regchannel.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp index 991cf90f8..73fb82d7f 100644 --- a/src/regchannel.cpp +++ b/src/regchannel.cpp @@ -196,7 +196,7 @@ void ChannelInfo::Type::Serialize(Serializable *obj, Serialize::Data &data) cons if (ci->successor) data.Store("successorid", ci->successor->GetId()); data.Store("description", ci->desc); - data.Store("time_registered", ci->registered); + data.Store("registered", ci->registered); data.Store("last_used", ci->last_used); data.Store("last_topic", ci->last_topic); data.Store("last_topic_setter", ci->last_topic_setter); @@ -244,7 +244,7 @@ Serializable *ChannelInfo::Type::Unserialize(Serializable *obj, Serialize::Data ci->SetSuccessor(ssuccessorid ? NickCore::FindId(ssuccessorid) : NickCore::Find(ssuccessor)); data["description"] >> ci->desc; - data["time_registered"] >> ci->registered; + data["registered"] >> ci->registered; data["last_used"] >> ci->last_used; data["last_topic"] >> ci->last_topic; data["last_topic_setter"] >> ci->last_topic_setter; @@ -328,6 +328,11 @@ Serializable *ChannelInfo::Type::Unserialize(Serializable *obj, Serialize::Data ci->Extend<bool>("SIGNKICK_LEVEL"); // End 1.9 compatibility. + // Begin 2.0 compatibility. + if (!ci->registered) + data["time_registered"] >> ci->registered; + // End 2.0 compatibility. + return ci; } |