1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 10:23:14 +02:00

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

This commit is contained in:
Adam
2010-10-04 18:57:54 -04:00
parent 92338c13b8
commit 592060ac75
3 changed files with 74 additions and 25 deletions
+5
View File
@@ -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)
{