diff options
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r-- | src/regchannel.cpp | 4 |
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(); } |