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 = $$;
|
$APID = $$;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Events.
|
||||||
|
API::Std::event_add("on_preconnect");
|
||||||
|
|
||||||
# Load modules.
|
# Load modules.
|
||||||
if (conf_get("module")) {
|
if (conf_get("module")) {
|
||||||
alog "* Loading modules...";
|
alog "* Loading modules...";
|
||||||
@@ -184,7 +187,6 @@ if (conf_get("module")) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
## Create sockets.
|
## Create sockets.
|
||||||
API::Std::event_add("on_preconnect");
|
|
||||||
alog "* Connecting to servers...";
|
alog "* Connecting to servers...";
|
||||||
dbug "* Connecting to servers...";
|
dbug "* Connecting to servers...";
|
||||||
# Get servers from config.
|
# Get servers from config.
|
||||||
|
|||||||
Reference in new issue
Block a user