#include "services.h"
Go to the source code of this file.
| #define CHECK | ( | v | ) |
do { \ if (!v) { \ error(0, #v " missing"); \ retval = 0; \ } \ } while (0)
Definition at line 868 of file config.c.
Referenced by read_config().
| #define CHEK2 | ( | v, | ||
| n | ||||
| ) |
do { \ if (!v) { \ error(0, #n " missing"); \ retval = 0; \ } \ } while (0)
Definition at line 875 of file config.c.
Referenced by read_config().
| void error | ( | int | linenum, | |
| const char * | message, | |||
| ... | ||||
| ) |
Definition at line 648 of file config.c.
References alog(), nofork, SERVICES_CONF, and vsnprintf().
Referenced by parse(), parse_directive(), and read_config().
| int parse | ( | char * | buf, | |
| int | linenum, | |||
| int | reload | |||
| ) |
Definition at line 807 of file config.c.
References error(), lenof, MAXPARAMS, and parse_directive().
Referenced by read_config().
| int parse_directive | ( | Directive * | d, | |
| char * | dir, | |||
| int | ac, | |||
| char * | av[MAXPARAMS], | |||
| int | linenum, | |||
| int | reload, | |||
| char * | s | |||
| ) |
Definition at line 680 of file config.c.
References dotime(), error(), Directive::flags, Directive::name, PARAM_DEPRECATED, PARAM_FULLONLY, PARAM_INT, PARAM_OPTIONAL, PARAM_PORT, PARAM_POSINT, PARAM_RELOAD, PARAM_SET, PARAM_STRING, PARAM_TIME, Directive::params, Directive::ptr, sstrdup(), stricmp(), and Directive::type.
Referenced by moduleGetConfigDirective(), and parse().
| int read_config | ( | int | reload | ) |
Check all DEFCON dependiencies...
If they try to enable any email registration option, make sure they have everything else they need too...
rob
Definition at line 891 of file config.c.
References alog(), AutokillExpiry, BotCoreModules, BotDBName, BotServCoreModules, BotServCoreNumber, BSBadWordsMax, BSDefDontKickOps, BSDefDontKickVoices, BSDefFantasy, BSDefFlags, BSDefGreet, BSDefSymbiosis, BSFantasyCharacter, BSKeepData, BSMinUsers, buildStringList(), ChanCoreModules, ChanDBName, ChankillExpiry, ChanServCoreModules, ChanServCoreNumber, CHECK, CHEK2, CSAccessMax, CSAutokickMax, CSAutokickReason, CSDefFlags, CSDefKeepTopic, CSDefNone, CSDefOpNotice, CSDefPeace, CSDefPrivate, CSDefRestricted, CSDefSecure, CSDefSecureFounder, CSDefSecureOps, CSDefSignKick, CSDefSignKickLevel, CSDefTopicLock, CSDefXOP, CSInhabit, CSListMax, DefCon, DefCon1, DefCon2, DefCon3, DefCon4, DefCon5, DEFCON_AKILL_NEW_CLIENTS, DEFCON_FORCE_CHAN_MODES, DEFCON_REDUCE_SESSION, DefConAKILL, DefConAkillReason, DefConChanModes, DefConLevel, DefconMessage, DefConSessionLimit, DefSessionLimit, EncModule, error(), ExceptionDBName, ExceptionExpiry, ExpireTimeout, Directive::flags, GlobalOnCycle, GlobalOnCycleMessage, GlobalOnCycleUP, GlobalOnDefconMore, HelpCoreModules, HelpServCoreModules, HelpServCoreNumber, HostCoreModules, HostDBName, HostNumber, HostServCoreModules, HostServCoreNumber, HostSetter, HostSetters, IRCDModule, langlist, lenof, LimitSessions, linenum, LocalHost, LocalPort, log_perror(), MAXPARAMS, MaxSessionKill, MaxSessionLimit, MemoCoreModules, MemoServCoreModules, MemoServCoreNumber, Modules, ModulesAutoload, ModulesDelayed, ModulesDelayedAutoload, ModulesDelayedNumber, ModulesNumber, MOTDFilename, MysqlRetries, MysqlRetryGap, NetworkName, NewsCount, NewsDBName, NickCoreModules, NickDBName, NickLen, NICKMAX, NickServCoreModules, NickServCoreNumber, nofork, NSAccessMax, NSDefAutoop, NSDefFlags, NSDefHideEmail, NSDefHideQuit, NSDefHideUsermask, NSDefKill, NSDefKillQuick, NSDefLanguage, NSDefMemoReceive, NSDefMemoSignon, NSDefMsg, NSDefNone, NSDefPrivate, NSDefSecure, NSEmailReg, NSEnforcerHost, NSEnforcerUser, NSForceEmail, NSGuestNickPrefix, NSListMax, NSReleaseTimeout, NSRExpire, NUM_LANGS, NumUlines, OperCoreModules, OperDBName, OperServCoreModules, OperServCoreNumber, PARAM_INT, PARAM_POSINT, PARAM_RELOAD, PARAM_SET, PARAM_STRING, PARAM_TIME, Directive::params, parse(), PIDFilename, PreNickDBName, Directive::ptr, ReadTimeout, RemotePort, RemoteServer, RemoteServer2, RemoteServer3, RootNumber, s_BotServ, s_BotServAlias, s_ChanServ, s_ChanServAlias, s_GlobalNoticer, s_GlobalNoticerAlias, s_HelpServ, s_HelpServAlias, s_HostServ, s_HostServAlias, s_MemoServ, s_MemoServAlias, s_NickServ, s_NickServAlias, s_OperServ, s_OperServAlias, SendFrom, SendMailPath, ServerDesc, ServerName, ServiceHost, SERVICES_CONF, ServicesRoot, ServicesRoots, ServiceUser, SessionAutoKillExpiry, SGLineExpiry, SQLineExpiry, srealloc(), sstrdup(), stricmp(), SZLineExpiry, temp_nsuserhost, temp_userhost, TimeoutCheck, Directive::type, Ulines, UlineServers, UpdateTimeout, USED_LANGS, UseMail, UsePrivmsg, UserKey1, UserKey2, UserKey3, and WarningTimeout.
Referenced by do_listchans(), do_listnicks(), do_reload(), init_primary(), and sighandler().
| int AddAkiller |
| int AkillOnAdd |
| int AnonymousGlobal |
| char* AutokillDBName |
| int AutokillExpiry |
| int BadPassLimit |
| int BadPassTimeout |
| char* BotCoreModules |
Definition at line 294 of file config.c.
Referenced by read_config().
| char** BotServCoreModules |
| int BSBadWordsMax |
| int BSCaseSensitive |
| int BSDefDontKickOps |
Definition at line 201 of file config.c.
Referenced by read_config().
Definition at line 202 of file config.c.
Referenced by read_config().
| int BSDefFantasy |
Definition at line 203 of file config.c.
Referenced by read_config().
| int BSDefFlags |
| int BSDefGreet |
Definition at line 204 of file config.c.
Referenced by read_config().
| int BSDefSymbiosis |
Definition at line 205 of file config.c.
Referenced by read_config().
| char* BSFantasyCharacter |
| int BSGentleBWReason |
| int BSKeepData |
| int BSMinUsers |
| int BSSmartJoin |
| char* ChanCoreModules |
Definition at line 306 of file config.c.
Referenced by read_config().
| char* ChanDBName |
| int ChankillExpiry |
| char** ChanServCoreModules |
| int CSAccessMax |
| int CSAutokickMax |
| char* CSAutokickReason |
| int CSDefBantype |
| int CSDefFlags |
| int CSDefKeepTopic |
Definition at line 171 of file config.c.
Referenced by read_config().
| int CSDefNone |
Definition at line 170 of file config.c.
Referenced by read_config().
| int CSDefOpNotice |
Definition at line 172 of file config.c.
Referenced by read_config().
| int CSDefPeace |
Definition at line 173 of file config.c.
Referenced by read_config().
| int CSDefPrivate |
Definition at line 174 of file config.c.
Referenced by read_config().
| int CSDefRestricted |
Definition at line 175 of file config.c.
Referenced by read_config().
| int CSDefSecure |
Definition at line 176 of file config.c.
Referenced by read_config().
Definition at line 178 of file config.c.
Referenced by read_config().
| int CSDefSecureOps |
Definition at line 177 of file config.c.
Referenced by read_config().
| int CSDefSignKick |
Definition at line 179 of file config.c.
Referenced by read_config().
Definition at line 180 of file config.c.
Referenced by read_config().
| int CSDefTopicLock |
Definition at line 181 of file config.c.
Referenced by read_config().
| int CSDefXOP |
Definition at line 182 of file config.c.
Referenced by read_config().
| int CSListOpersOnly |
| int CSOpersOnly |
| int DefCon1 |
Definition at line 323 of file config.c.
Referenced by read_config().
| int DefCon2 |
Definition at line 324 of file config.c.
Referenced by read_config().
| int DefCon3 |
Definition at line 325 of file config.c.
Referenced by read_config().
| int DefCon4 |
Definition at line 326 of file config.c.
Referenced by read_config().
| int DefCon5 |
Definition at line 327 of file config.c.
Referenced by read_config().
| char* DefConAKILL |
| char* DefConAkillReason |
| char* DefConChanModes |
| int DefConLevel |
| char* DefconMessage |
| char* DefConOffMessage |
| char* DefConTimeOut |
| int DefSessionLimit |
| char* desc_BotServ |
| char* desc_BotServAlias |
| char* desc_ChanServ |
| char* desc_ChanServAlias |
| char* desc_DevNull |
| char* desc_DevNullAlias |
| char* desc_GlobalNoticer |
| char* desc_GlobalNoticerAlias |
| char* desc_HelpServ |
| char* desc_HelpServAlias |
| char* desc_HostServ |
| char* desc_HostServAlias |
| char* desc_MemoServ |
| char* desc_MemoServAlias |
| char* desc_NickServ |
| char* desc_NickServAlias |
| char* desc_OperServ |
| char* desc_OperServAlias |
| int DisableRaw |
| char* ExceptionDBName |
| int ExceptionExpiry |
| int ExpireTimeout |
| int ForkForMail |
| int GlobalOnCycle |
| char* GlobalOnCycleMessage |
| char* GlobalOnCycleUP |
| int GlobalOnDefcon |
| char* HelpChannel |
| char* HelpCoreModules |
Definition at line 290 of file config.c.
Referenced by read_config().
| char** HelpServCoreModules |
| int HideStatsO |
| char* HostCoreModules |
| char* HostDBName |
| int HostNumber = 0 |
| char** HostServCoreModules |
| char* HostSetter |
Definition at line 98 of file config.c.
Referenced by read_config().
| char** HostSetters |
| char* IRCDModule |
| int KeepBackups |
| int KillonSGline |
| int KillonSQline |
| int LimitSessions |
| char* LogChannel |
| int LogMaxUsers |
| int MaxSessionKill |
| int MaxSessionLimit |
| char* MemoCoreModules |
Definition at line 286 of file config.c.
Referenced by read_config().
| char** MemoServCoreModules |
| char* Modules |
Definition at line 272 of file config.c.
Referenced by read_config().
| char** ModulesAutoload |
| char* ModulesDelayed |
Definition at line 273 of file config.c.
Referenced by read_config().
| char** ModulesDelayedAutoload |
| int ModulesNumber |
| char* MOTDFilename |
| int MSMaxMemos |
| int MSMemoReceipt |
| int MSNotifyAll |
| int MSSendDelay |
| char* MysqlHost |
Definition at line 311 of file config.c.
Referenced by db_mysql_init(), db_mysql_open(), and do_set().
| char* MysqlName |
Definition at line 314 of file config.c.
Referenced by db_mysql_init(), and db_mysql_open().
| char* MysqlPass |
Definition at line 313 of file config.c.
Referenced by db_mysql_open().
| int MysqlPort |
Definition at line 315 of file config.c.
Referenced by db_mysql_open().
| int MysqlRetries = 0 |
Definition at line 318 of file config.c.
Referenced by db_mysql_query(), and read_config().
| int MysqlRetryGap = 0 |
Definition at line 319 of file config.c.
Referenced by db_mysql_query(), and read_config().
| char* MysqlSecure |
Definition at line 316 of file config.c.
Referenced by db_mysql_secure(), and init_secondary().
| char* MysqlSock |
Definition at line 317 of file config.c.
Referenced by db_mysql_open().
| char* MysqlUser |
Definition at line 312 of file config.c.
Referenced by db_mysql_init(), and db_mysql_open().
| char* NetworkName |
| char* NewsDBName |
| char* NickCoreModules |
Definition at line 302 of file config.c.
Referenced by read_config().
| char* NickDBName |
| int NickRegDelay |
| char** NickServCoreModules |
| int NoBackupOkay |
| int NSAccessMax |
| int NSAddAccessOnReg |
| int NSAllowKillImmed |
| int NSDefAutoop |
Definition at line 148 of file config.c.
Referenced by read_config().
| int NSDefFlags |
| int NSDefHideEmail |
Definition at line 141 of file config.c.
Referenced by read_config().
| int NSDefHideQuit |
Definition at line 143 of file config.c.
Referenced by read_config().
Definition at line 142 of file config.c.
Referenced by read_config().
| int NSDefKill |
Definition at line 136 of file config.c.
Referenced by read_config().
| int NSDefKillQuick |
Definition at line 137 of file config.c.
Referenced by read_config().
| int NSDefLanguage |
| int NSDefMemoReceive |
Definition at line 145 of file config.c.
Referenced by read_config().
| int NSDefMemoSignon |
Definition at line 144 of file config.c.
Referenced by read_config().
| int NSDefMsg |
Definition at line 140 of file config.c.
Referenced by read_config().
int NSDefNone [static] |
Definition at line 132 of file config.c.
Referenced by read_config().
| int NSDefPrivate |
Definition at line 139 of file config.c.
Referenced by read_config().
| int NSDefSecure |
Definition at line 138 of file config.c.
Referenced by read_config().
| int NSEmailReg |
| char* NSEnforcerHost |
| char* NSEnforcerUser |
| int NSForceEmail |
| char* NSGuestNickPrefix |
| int NSListOpersOnly |
| int NSMaxAliases |
| int NSModeOnID |
| int NSNickTracking |
| int NSNoGroupChange |
| int NSRegDelay |
| int NSReleaseTimeout |
| int NSResendDelay |
| int NSSecureAdmins |
| char* OperCoreModules |
Definition at line 298 of file config.c.
Referenced by read_config().
| char* OperDBName |
| char** OperServCoreModules |
| int OSOpersOnly |
| char* PIDFilename |
| char* PreNickDBName |
| int ReadTimeout |
| char* RemotePassword |
| char* RemotePassword2 |
| char* RemotePassword3 |
| int RemotePort |
| int RemotePort2 |
| int RemotePort3 |
| char* RemoteServer |
| char* RemoteServer2 |
| char* RemoteServer3 |
| int RestrictMail |
| int RootNumber |
| char* s_BotServAlias |
| char* s_ChanServ |
| char* s_ChanServAlias |
| char* s_DevNullAlias |
| char* s_GlobalNoticer |
| char* s_GlobalNoticerAlias |
| char* s_HelpServ |
| char* s_HelpServAlias |
| char* s_HostServ |
| char* s_HostServAlias |
| char* s_MemoServ |
| char* s_MemoServAlias |
| char* s_NickServ |
| char* s_NickServAlias |
| char* s_OperServ |
| char* s_OperServAlias |
| char* SendMailPath |
| char* ServerDesc |
| char* ServerName |
| char* ServiceHost |
| char* ServicesRoot |
Definition at line 221 of file config.c.
Referenced by read_config().
| char** ServicesRoots |
| char* ServiceUser |
| char* SessionLimitDetailsLoc |
| char* SessionLimitExceeded |
| int SGLineExpiry |
| int SQLineExpiry |
| int StrictPasswords |
| int SuperAdmin |
| int SZLineExpiry |
char* temp_nsuserhost [static] |
Definition at line 158 of file config.c.
Referenced by read_config().
char* temp_userhost [static] |
Definition at line 41 of file config.c.
Referenced by read_config().
| int TimeoutCheck |
| char* UlineServers |
| int UnRestrictSAdmin |
| int UpdateTimeout |
| int UsePrivmsg |
| int UseRDB = 0 |
Definition at line 320 of file config.c.
Referenced by init_secondary().
| int UseStrictPrivMsg |
| int UseSVS2MODE |
| int UseSVSHOLD |
| int WallAkillExpire |
| int WallForbid |
| int WallGetpass |
| int WallOSAkill |
| int WallOSClearmodes |
| int WallOSGlobal |
| int WallOSJupe |
| int WallOSKick |
| int WallOSMode |
| int WallOSNoOp |
| int WallOSSGLine |
| int WallOSSQLine |
| int WallOSSZLine |
| int WallSetpass |
| int WallSGLineExpire |
| int WallSQLineExpire |
| int WallSZLineExpire |
| int WarningTimeout |
1.7.1