0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-16 08:58:20 +02:00

configure: add ENABLE_OPER_CHGHOST flag

This commit is contained in:
Elizabeth Myers 2016-03-18 14:57:08 -05:00
parent f79f3e6a95
commit 0e99e13a71
4 changed files with 15 additions and 10 deletions

View file

@ -497,6 +497,18 @@ if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then
AC_DEFINE(CUSTOM_BRANDING, 1, [Define if custom branding is enabled.])
fi
dnl **********************************************************************
dnl Enable oper chghost
dnl **********************************************************************
AC_ARG_ENABLE(oper-chghost,
AC_HELP_STRING([--enable-oper-chghost],[Allow opers to use the CHGHOST command]),
[operchghost=$enableval],[operchghost=no])
if test "$operchghost" = yes; then
AC_DEFINE(ENABLE_OPER_CHGHOST, 1, [Define this to enable opers to use the CHGHOST command.])
fi
dnl Debug-related options
dnl =====================

View file

@ -72,11 +72,6 @@
*/
#undef IGNORE_BOGUS_TS
/* ENABLE_OPER_CHGHOST
* Allow opers to use the CHGHOST command. Potentially abusive.
*/
#undef ENABLE_OPER_CHGHOST
/* HANGONGOODLINK and HANGONRETRYDELAY
* Often net breaks for a short time and it's useful to try to
* establishing the same connection again faster than CONNECTFREQUENCY

View file

@ -72,11 +72,6 @@
*/
#undef IGNORE_BOGUS_TS
/* ENABLE_OPER_CHGHOST
* Allow opers to use the CHGHOST command. Potentially abusive.
*/
#undef ENABLE_OPER_CHGHOST
/* HANGONGOODLINK and HANGONRETRYDELAY
* Often net breaks for a short time and it's useful to try to
* establishing the same connection again faster than CONNECTFREQUENCY

View file

@ -41,6 +41,9 @@
/* Size of the dlink_node heap. */
#undef DNODE_HEAP_SIZE
/* Define this to enable opers to use the CHGHOST command. */
#undef ENABLE_OPER_CHGHOST
/* Prefix where config files are installed. */
#undef ETC_DIR