Add autoconnect option for Connect block.
[ircu2.10.12-pk.git] / ircd / ircd.c
index bf82c8cfbaf3cb3cb641e6fff33e3001eb4b950f..f2903003fdc476ef3068d3068aa80b51cc0b3bdd 100644 (file)
@@ -265,6 +265,7 @@ static void try_connections(struct Event* ev) {
      */
     if (!(aconf->status & CONF_SERVER)
         || aconf->address.port == 0
+        || !(aconf->flags & CONF_AUTOCONNECT)
         || ((ajupe = jupe_find(aconf->name)) && JupeIsActive(ajupe)))
       continue;