Moved on_preconnect's creation to before modules are loaded, in case they want to hook on.

This commit is contained in:
Elijah Perrault committed 2011-01-30 10:44:18 -07:00
1 parent fb6e64fa98
commit 8cc6538f7b
1 file changed
+3 -1
+3 -1
View File
@@ -174,6 +174,9 @@ else {
$APID = $$;
}
# Events.
API::Std::event_add("on_preconnect");
# Load modules.
if (conf_get("module")) {
alog "* Loading modules...";
@@ -184,7 +187,6 @@ if (conf_get("module")) {
}
## Create sockets.
API::Std::event_add("on_preconnect");
alog "* Connecting to servers...";
dbug "* Connecting to servers...";
# Get servers from config.