summaryrefslogtreecommitdiff
path: root/src/regchannel.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-05-09 21:42:53 +0100
committerSadie Powell <sadie@witchery.services>2025-05-09 21:43:35 +0100
commit07f57b11083c3126e256dc381ab3646a01f71d66 (patch)
tree0b15084627c518c766c560ad18496c99ba34ad4a /src/regchannel.cpp
parent5d648f9f1cf7e23ac54317f2d63c1f9b7844de9f (diff)
Be more explicit about what versions compatibility code is for.
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r--src/regchannel.cpp8
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;
}