1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 07:56:39 +02:00

Fix cs_mode lock reply if nothing is done

Fix not clearing forbids when os_forbid is unloaded
Apply nick and chan forbids when added
Fix loading forbids until after the service is constructed
This commit is contained in:
Adam
2013-09-12 22:27:30 -04:00
parent abc7e4b423
commit 1818b19eba
4 changed files with 72 additions and 6 deletions
+5 -1
View File
@@ -266,7 +266,11 @@ Serializable* ChannelInfo::Unserialize(Serializable *obj, Serialize::Data &data)
std::vector<Anope::string> v;
spacesepstream(slevels).GetTokens(v);
for (unsigned i = 0; i + 1 < v.size(); i += 2)
ci->levels[v[i]] = convertTo<int16_t>(v[i + 1]);
try
{
ci->levels[v[i]] = convertTo<int16_t>(v[i + 1]);
}
catch (const ConvertException &) { }
}
BotInfo *bi = BotInfo::Find(sbi);
if (*ci->bi != bi)