+2005-01-25 Michael Poole <mdpoole@troilus.org>
+
+ * configure.in: Fix typos and thinkos in previous commut.
+
+ * configure: Regenerate.
+
+ * doc/example.conf: Change class name in Connect block to be
+ consistent with earlier Class block.
+
+ * ircd/ircd.c (try_connections): Consider Connect blocks with hold
+ time of 0. Fix Links() vs MaxLinks() comparison to reflect ref
+ count starting at 1.
+
+ * ircd/ircd_parser.y (cruleblock, iauthblock): Clear unused
+ variables after use.
+
2005-01-24 Michael Poole <mdpoole@troilus.org>
* configure.in: Make sure that $LEX and $YACC are reasonable and
fi
fi
-if "$LEX" eq ":" ; then
+if test "$LEX" = ":" ; then
{ { echo "$as_me:$LINENO: error: Cannot find flex." >&5
echo "$as_me: error: Cannot find flex." >&2;}
{ (exit 1); exit 1; }; }
elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then
- { { echo "$as_me:$LINENO: error: Cannot find flex." >&5
-echo "$as_me: error: Cannot find flex." >&2;}
+ :
+else
+ { { echo "$as_me:$LINENO: error: Cannot use $LEX as flex." >&5
+echo "$as_me: error: Cannot use $LEX as flex." >&2;}
{ (exit 1); exit 1; }; }
fi
done
test -n "$YACC" || YACC="yacc"
-if "$YACC" eq ":" ; then
+if test "$YACC" = ":" ; then
{ { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
echo "$as_me: error: Cannot find yacc." >&2;}
{ (exit 1); exit 1; }; }
elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then
- { { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
-echo "$as_me: error: Cannot find yacc." >&2;}
+ :
+else
+ { { echo "$as_me:$LINENO: error: Cannot use $YACC as yacc." >&5
+echo "$as_me: error: Cannot use $YACC as yacc." >&2;}
{ (exit 1); exit 1; }; }
fi
dnl (F)LEX - needed for the new conf file parser
AC_PROG_LEX
dnl The autoconf docs say $LEX defaults to 'lex'. They lie.
-if [ "$LEX" eq ":" ] ; then
+if test "$LEX" = ":" ; then
AC_MSG_ERROR([Cannot find flex.])
elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then
- AC_MSG_ERROR([Cannot find flex.])
+ :
+else
+ AC_MSG_ERROR([Cannot use $LEX as flex.])
fi
if test -z "$LEXLIB" ; then
AC_PROG_YACC
dnl The autoconf docs say $YACC defaults to 'yacc'. This seems to be true,
dnl but judging from AC_PROG_LEX, it may not stay true.
-if [ "$YACC" eq ":" ] ; then
+if test "$YACC" = ":" ; then
AC_MSG_ERROR([Cannot find yacc.])
elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then
- AC_MSG_ERROR([Cannot find yacc.])
+ :
+else
+ AC_MSG_ERROR([Cannot use $YACC as yacc.])
fi
host = "1.2.3.4";
password = "passwd";
port = 4400;
- class = "Servers";
+ class = "Server";
hub;
};
*/
if (!(aconf->status & CONF_SERVER)
|| aconf->address.port == 0
- || aconf->hold == 0
|| ((ajupe = jupe_find(aconf->name)) && JupeIsActive(ajupe)))
continue;
* or if connect rules forbid a link now.
*/
if (hold
- || (Links(cltmp) >= MaxLinks(cltmp))
+ || (Links(cltmp) > MaxLinks(cltmp))
|| FindServer(aconf->name)
- || conf_eval_crule(aconf->name, CRULE_MASK)) {
+ || conf_eval_crule(aconf->name, CRULE_MASK))
continue;
- }
/* Ensure it is at the end of the list for future checks. */
if (aconf->next) {
parse_error("Bad CRule block");
}
host = pass = NULL;
+ tconn = 0;
};
cruleitems: cruleitem cruleitems | cruleitem;
MyFree(pass);
MyFree(host);
pass = host = NULL;
- port = 0;
+ port = tconn = tping = 0;
};
iauthitems: iauthitem iauthitems | iauthitem;