summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-06-23 14:36:03 +0100
committerSadie Powell <sadie@witchery.services>2024-06-23 14:36:03 +0100
commitb94c3740b967f844c5a51b51c902d1aca822497b (patch)
tree4266acdebae9d2ed9ea89a645a44e9869fd29546 /src
parent59ec42f0e6a49a3a4a2386a392cdfec5906af912 (diff)
Make the language around fantasy commands less weird.
Diffstat (limited to 'src')
-rw-r--r--src/regchannel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp
index 6aaf02901..f01b31f3e 100644
--- a/src/regchannel.cpp
+++ b/src/regchannel.cpp
@@ -239,6 +239,10 @@ Serializable *ChannelInfo::Unserialize(Serializable *obj, Serialize::Data &data)
spacesepstream(slevels).GetTokens(v);
for (unsigned i = 0; i + 1 < v.size(); i += 2)
{
+ // Begin 2.0 database compatibility.
+ if (v[i] == "FANTASIA")
+ v[i] = "FANTASY";
+ // End 2.0 database compatibility.
if (auto level = Anope::TryConvert<int16_t>(v[i + 1]))
ci->levels[v[i]] = level.value();
}