diff options
author | Adam <Adam@anope.org> | 2010-10-04 18:57:54 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-10-04 18:57:54 -0400 |
commit | 592060ac756dd7ac5983aac987264ff5eaecd265 (patch) | |
tree | 84143f0773fb4ba2887fa724c440c5fbb9c57f61 /src | |
parent | 92338c13b871378b8e828085b8b724d4217649a8 (diff) |
Attempt to write back the old mlock to the databases if we try and fail to connect to the uplink. Because we may not know modes until after we are synced we could accidentally nuke all of the mlocks
Diffstat (limited to 'src')
-rw-r--r-- | src/regchannel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp index 9bb79b8cc..053f75d5b 100644 --- a/src/regchannel.cpp +++ b/src/regchannel.cpp @@ -387,8 +387,13 @@ void ChannelInfo::LoadMLock() this->SetMLock(cm->Name, true, it->second); } } + } + this->Shrink("db_mlock_modes_on"); + this->Shrink("db_mlock_modes_off"); + this->Shrink("db_mlp"); + /* Create perm channel */ if (this->HasFlag(CI_PERSIST) && !this->c) { |