1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 20:36:38 +02:00

Dont load mlock from the database until after Anope is connected, it doesnt know all of the available modes until then

This commit is contained in:
Adam
2010-05-19 16:59:16 -04:00
committed by Adam
parent 0358ae062b
commit 3a2c2a916a
8 changed files with 115 additions and 79 deletions
+8
View File
@@ -440,6 +440,14 @@ void CapabParse(int ac, const char **av)
}
}
}
/* Apply MLock now that we know what modes exist (capab is parsed after modes are added to Anope) */
for (registered_channel_map::iterator it = RegisteredChannelList.begin(); it != RegisteredChannelList.end(); ++it)
{
ChannelInfo *ci = it->second;
ci->LoadMLock();
}
}
/*************************************************************************/