From 8cc6538f7b23fd71436f64b1b8f9b2b2a1787f2b Mon Sep 17 00:00:00 2001 From: Elijah Perrault Date: Sun, 30 Jan 2011 10:44:18 -0700 Subject: [PATCH] Moved on_preconnect's creation to before modules are loaded, in case they want to hook on. --- bin/auto | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/auto b/bin/auto index 0bb7ef0..01c9c30 100755 --- a/bin/auto +++ b/bin/auto @@ -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.