1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 19:43:13 +02:00

Fixed a lot of small problems

This commit is contained in:
Adam
2011-02-25 21:40:43 -05:00
parent eea7d2eb77
commit ee38756982
26 changed files with 481 additions and 657 deletions
+6 -6
View File
@@ -877,9 +877,10 @@ class DBPlain : public Module
}
db_buffer << "MD MLOCK_ON";
{
Anope::string oldmodes;
std::vector<Anope::string> oldmodes;
if ((!Me || !Me->IsSynced()) && ci->GetExtRegular("db_mlock_modes_on", oldmodes))
db_buffer << " " << oldmodes;
for (unsigned i = 0; i < oldmodes.size(); ++i)
db_buffer << " " << oldmodes[i];
else
{
for (std::multimap<ChannelModeName, ModeLock>::const_iterator it = ci->GetMLock().begin(), it_end = ci->GetMLock().end(); it != it_end; ++it)
@@ -898,11 +899,10 @@ class DBPlain : public Module
db_buffer << endl;
db_buffer << "MD MLOCK_OFF";
{
Anope::string oldmodes;
std::vector<Anope::string> oldmodes;
if ((!Me || !Me->IsSynced()) && ci->GetExtRegular("db_mlock_modes_off", oldmodes))
{
db_buffer << " " << oldmodes;
}
for (unsigned i = 0; i < oldmodes.size(); ++i)
db_buffer << " " << oldmodes[i];
else
{
for (std::multimap<ChannelModeName, ModeLock>::const_iterator it = ci->GetMLock().begin(), it_end = ci->GetMLock().end(); it != it_end; ++it)