diff options
author | Sadie Powell <sadie@witchery.services> | 2025-05-09 21:42:53 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-05-09 21:43:35 +0100 |
commit | 07f57b11083c3126e256dc381ab3646a01f71d66 (patch) | |
tree | 0b15084627c518c766c560ad18496c99ba34ad4a /src/nickcore.cpp | |
parent | 5d648f9f1cf7e23ac54317f2d63c1f9b7844de9f (diff) |
Be more explicit about what versions compatibility code is for.
Diffstat (limited to 'src/nickcore.cpp')
-rw-r--r-- | src/nickcore.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/nickcore.cpp b/src/nickcore.cpp index b1b43d533..c39a43764 100644 --- a/src/nickcore.cpp +++ b/src/nickcore.cpp @@ -123,7 +123,7 @@ Serializable *NickCore::Type::Unserialize(Serializable *obj, Serialize::Data &da Extensible::ExtensibleUnserialize(nc, nc, data); - /* compat */ + // Begin 1.9 compatibility. bool b; b = false; data["extensible:PRIVATE"] >> b; @@ -153,7 +153,10 @@ Serializable *NickCore::Type::Unserialize(Serializable *obj, Serialize::Data &da data["extensible:KILLPROTECT"] >> b; if (b) nc->Extend<bool>("PROTECT"); + // End 1.9 compatibility + + // Begin 2.0 compatibility. b = false; data["KILLPROTECT"] >> b; if (b) @@ -175,7 +178,7 @@ Serializable *NickCore::Type::Unserialize(Serializable *obj, Serialize::Data &da nc->Extend<bool>("PROTECT"); nc->Extend("PROTECT_AFTER", 0); } - /* end compat */ + // End 2.0 compatibility. return nc; } |