diff options
author | Adam <Adam@drink-coca-cola.info> | 2010-05-19 16:59:16 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-06-18 21:03:44 -0400 |
commit | 3a2c2a916a26f4fa1844e71a9f1c2fc25337fd2b (patch) | |
tree | 93cb603a579699b51b74a450db092ab8db595e1f /src/servers.cpp | |
parent | 0358ae062b771a3e018ef147f607eae7d0bd8647 (diff) |
Dont load mlock from the database until after Anope is connected, it doesnt know all of the available modes until then
Diffstat (limited to 'src/servers.cpp')
-rw-r--r-- | src/servers.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/servers.cpp b/src/servers.cpp index de7506c7e..88b326f47 100644 --- a/src/servers.cpp +++ b/src/servers.cpp @@ -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(); + } } /*************************************************************************/ |