201 lines
4.7 KiB
C
201 lines
4.7 KiB
C
/**
|
|
* cservice_config.h
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
* USA.
|
|
*
|
|
* $Id: cservice_config.h,v 1.14 2012/06/02 22:23:12 Seven Exp $
|
|
*/
|
|
|
|
#ifndef __CSERVICE_CONFIG_H
|
|
#define __CSERVICE_CONFIG_H "$Id: cservice_config.h,v 1.14 2012/06/02 22:23:12 Seven Exp $"
|
|
|
|
/**
|
|
* Define this if you wish for all SQL queries to be sent
|
|
* the standard logging stream (elog).
|
|
*/
|
|
#define LOG_SQL
|
|
|
|
/**
|
|
* Define this if you wish to log all cache hits.
|
|
*/
|
|
#define LOG_CACHE_HITS
|
|
|
|
/**
|
|
* Define this if you wish for general debugging information
|
|
* be logged.
|
|
*/
|
|
#define LOG_DEBUG
|
|
|
|
/**
|
|
* The maximum number of results to return to the user on
|
|
* an LBANLIST query.
|
|
*/
|
|
#define MAX_LBAN_RESULTS 10
|
|
|
|
/**
|
|
* The maximum number of results to return to the user on
|
|
* an ACCESS query.
|
|
*/
|
|
#define MAX_ACCESS_RESULTS 15
|
|
|
|
/**
|
|
* The maximum number of search results to return to the user.
|
|
*/
|
|
#define MAX_SEARCH_RESULTS 10
|
|
|
|
/**
|
|
* Do you want NEWPASS command or not?
|
|
*/
|
|
|
|
#undef USE_NEWPASS
|
|
|
|
/**
|
|
* Do you want to use the Noteserv functionality?
|
|
*/
|
|
|
|
#define USE_NOTICES
|
|
|
|
/**
|
|
* Do you want to use the Notices about any modification state?
|
|
*/
|
|
|
|
#define USE_NOTES
|
|
|
|
/**
|
|
* Do you want normal users to use the Noteserv functionality?
|
|
*/
|
|
|
|
#define USE_USERS_NOTES
|
|
|
|
/**
|
|
* Normal users can send notes to admins?
|
|
*/
|
|
|
|
#define USERS_NOTE_ADMINS
|
|
|
|
/**
|
|
* Do you want users and admins to get notification about their modification status?
|
|
*/
|
|
|
|
#define USE_MODINFO_NOTES
|
|
|
|
/**
|
|
* Users are able to set their URL(DESC,MOTTO)?
|
|
*/
|
|
|
|
#define USE_USERS_URL
|
|
|
|
/**
|
|
* Do you want silly oper-type people to mess around with channels?
|
|
*/
|
|
|
|
#define USE_OPERPARTJOIN
|
|
|
|
/**
|
|
* Do you want users to have the ability to set their own MAXLOGINS setting?
|
|
*/
|
|
|
|
#define USE_SETMAXLOGINS
|
|
|
|
/**
|
|
* Defineste aceasta optiune daca vrei sa activezi comanda HELLO.
|
|
* Comanda HELLO permite crearea de conturi noi direct de pe IRC.
|
|
* Fara aceasta optiune, comanda este complet dezactivata la compilare.
|
|
*/
|
|
#define ALLOW_HELLO
|
|
|
|
/**
|
|
* Defineste aceasta optiune daca vrei ca utilizatorii normali (ne-admini)
|
|
* sa poata folosi comanda HELLO.
|
|
* Fara aceasta optiune, doar adminii pot crea conturi prin HELLO,
|
|
* iar utilizatorii normali sunt redirectionati catre interfata web.
|
|
*/
|
|
#define ALLOW_USERS_HELLO
|
|
|
|
/**
|
|
* Define this if you want users to start channel registration process on IRC.
|
|
* If it's disabled they are redirected to use website registration.
|
|
*/
|
|
#undef ALLOW_IRC_CHANREG
|
|
|
|
/**
|
|
* Define this if you want to enable the WELCOME feature.
|
|
*/
|
|
#define USE_WELCOME
|
|
|
|
/**
|
|
* Define this if you want the IP restriction to default to REJECT when no
|
|
* entries are in the SQL table. Default setting allows login from any IP
|
|
* if there are no entries for the username in the SQL table.
|
|
*/
|
|
#undef IPR_DEFAULT_REJECT
|
|
|
|
/**
|
|
* Define this if you want to enable the 'cs.log' file (log of all commands
|
|
* including login) - Default is to NOT enable the log as it poses a security
|
|
* risk (it contains passwords)
|
|
*/
|
|
#undef USE_COMMAND_LOG
|
|
|
|
/**
|
|
* Define this if you want TOTP authentication, note you must have liboath
|
|
* installed, and configure --with-liboath for totp to work
|
|
*/
|
|
#undef TOTP_AUTH_ENABLED
|
|
|
|
/*
|
|
* Do you want X to show and log OPMODES?
|
|
*/
|
|
#define CATCH_OPMODES
|
|
|
|
/**
|
|
* Enable ANTITAKE channel flag and function?
|
|
* Protection against msg X ban #chan *!*@*
|
|
* Measures against the offender: suspend, remuser, kickban, etc.
|
|
*/
|
|
#define USE_NOTAKE
|
|
|
|
/**
|
|
* Define this if you're using gnuworld with nefarious2 ircd
|
|
* and want to enable features like nick registration
|
|
*/
|
|
#define USING_NEFARIOUS
|
|
|
|
/**
|
|
* Define this if you're using gnuworld with nefarious2 ircd
|
|
* and want to enable halfop.
|
|
* Note: USING_NEFARIOUS must be enabled!
|
|
*/
|
|
#define USE_HALFOPS
|
|
|
|
/**
|
|
* Enable this if you don't want users to set 'exotic' hostnames
|
|
* like with colors, etc.
|
|
*/
|
|
#define VALIDATE_SET_HOSTNAME
|
|
|
|
/**
|
|
* Enable this if you want to allow admins and opers to set restricted/reserved hosts
|
|
*/
|
|
#define ADMINS_USE_RESTRICTED_SETHOSTS
|
|
|
|
/**
|
|
* Define this if you want to enable coder-access levels in VERIFYCommand
|
|
*/
|
|
#define USE_CODER_LEVELS
|
|
|
|
#endif // __CSERVICE_CONFIG_H
|