From b94c3740b967f844c5a51b51c902d1aca822497b Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 23 Jun 2024 14:36:03 +0100 Subject: Make the language around fantasy commands less weird. --- src/regchannel.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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(v[i + 1])) ci->levels[v[i]] = level.value(); } -- cgit