summaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-08-28 20:56:45 -0400
committerAdam <Adam@anope.org>2010-08-28 20:56:45 -0400
commite820e1af0d01011dbe9d91d2971cc3518f7f3d42 (patch)
tree9eb52cf891c4cd92ad08ad8d2f7c019780bc6223 /src/init.cpp
parent26ba944d55fb4ee92dd5d7a3d2cfa869a8be151f (diff)
Properly store our clients internal channel status's and burst them if needed.
Also made Flag::HasFlag use test() instead of operator[] to catch errors, and fixed an out of bounds access to a Flags bitset causing crashes on some systems.
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 94cf37ce9..da3c30587 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -353,9 +353,6 @@ void Init(int ac, char **av)
if (!Config->s_GlobalNoticer.empty())
new BotInfo(Config->s_GlobalNoticer, Config->ServiceUser, Config->ServiceHost, Config->desc_GlobalNoticer);
- /* Init the log channels */
- InitLogChannels(Config);
-
/* Add Encryption Modules */
ModuleManager::LoadModuleList(Config->EncModuleList);
@@ -437,6 +434,9 @@ void Init(int ac, char **av)
rand_init();
add_entropy_userkeys();
+ /* Init log channels */
+ InitLogChannels(Config);
+
/* Load up databases */
Log() << "Loading databases...";
EventReturn MOD_RESULT;