diff options
author | Adam <Adam@anope.org> | 2014-04-11 16:10:30 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-04-17 16:58:04 -0400 |
commit | f36915790674275627cf8eb68024e17539ee04fa (patch) | |
tree | b8cb6f92e9bd2e8764a3c188be694bfaea49172e /modules/commands/cs_mode.cpp | |
parent | ba46b8e4abd8fef991732d5c52c858a229894a25 (diff) |
Use OnChanRegistered instead of OnCreateChan to set default mlocks.
Because OnCreateChan is called from ChannelInfo's constructor, during
DB loading it could cause mode locks to be unserialized without having
all channels loaded, which breaks things.
Diffstat (limited to 'modules/commands/cs_mode.cpp')
-rw-r--r-- | modules/commands/cs_mode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/cs_mode.cpp b/modules/commands/cs_mode.cpp index a13610d23..941a6d183 100644 --- a/modules/commands/cs_mode.cpp +++ b/modules/commands/cs_mode.cpp @@ -951,7 +951,7 @@ class CSMode : public Module } } - void OnCreateChan(ChannelInfo *ci) anope_override + void OnChanRegistered(ChannelInfo *ci) anope_override { ModeLocks *ml = modelocks.Require(ci); Anope::string mlock; |