Moved on_preconnect's creation to before modules are loaded, in case they want to hook on.
This commit is contained in:
1 parent
fb6e64fa98
commit
8cc6538f7b
1 file changed
+3
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user