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/regchannel.cpp | |
parent | 5d648f9f1cf7e23ac54317f2d63c1f9b7844de9f (diff) |
Be more explicit about what versions compatibility code is for.
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r-- | src/regchannel.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp index eb05722eb..861ff2af1 100644 --- a/src/regchannel.cpp +++ b/src/regchannel.cpp @@ -255,10 +255,10 @@ Serializable *ChannelInfo::Type::Unserialize(Serializable *obj, Serialize::Data spacesepstream(slevels).GetTokens(v); for (unsigned i = 0; i + 1 < v.size(); i += 2) { - // Begin 2.0 database compatibility. + // Begin 2.0 compatibility. if (v[i] == "FANTASIA") v[i] = "FANTASY"; - // End 2.0 database compatibility. + // End 2.0 compatibility. if (auto level = Anope::TryConvert<int16_t>(v[i + 1])) ci->levels[v[i]] = level.value(); } @@ -284,7 +284,7 @@ Serializable *ChannelInfo::Type::Unserialize(Serializable *obj, Serialize::Data Extensible::ExtensibleUnserialize(ci, ci, data); - /* compat */ + // Begin 1.9 compatibility. bool b; b = false; data["extensible:PRIVATE"] >> b; @@ -326,7 +326,7 @@ Serializable *ChannelInfo::Type::Unserialize(Serializable *obj, Serialize::Data data["extensible:SIGNKICK_LEVEL"] >> b; if (b) ci->Extend<bool>("SIGNKICK_LEVEL"); - /* end compat */ + // End 1.9 compatibility. return ci; } |