1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 09:46:40 +02:00

Added dumpcore and logusers directives to options block in new config.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1724 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
cyberbotx
2008-11-15 21:19:28 +00:00
parent dc2176560d
commit dd4069b504
3 changed files with 21 additions and 6 deletions
+15
View File
@@ -390,6 +390,21 @@ options {
* be used with Anope.
*/
#usestrictprivmsg = yes
/*
* If set, Anope will dump core when a segmentation fault occurs. This is
* generally not needed, but if Anope is crashing on your network and you
* want to make a bug report, having a core file may be of great help.
* This directive is optional.
*/
#dumpcore = yes
/*
* If set, Anope will log user connections, disconnections, and nickname
* changes. You may have to do so in case you ever need to transmit user
* information to your local authorities. This directive is optional.
*/
#logusers = yes
}
/*
+2 -2
View File
@@ -297,8 +297,8 @@ E int KeepBackups;
E bool ForceForbidReason;
E bool UsePrivmsg;
E bool UseStrictPrivMsg;
E int DumpCore;
E int LogUsers;
E bool DumpCore;
E bool LogUsers;
E int NickRegDelay;
E int UseSVSHOLD;
E int RestrictOperNicks;
+4 -4
View File
@@ -99,8 +99,8 @@ int KeepBackups;
bool ForceForbidReason;
bool UsePrivmsg;
bool UseStrictPrivMsg;
int DumpCore;
int LogUsers;
bool DumpCore;
bool LogUsers;
int NickRegDelay;
int UseSVSHOLD;
int NewsCount;
@@ -652,6 +652,8 @@ int ServerConfig::Read(bool bail)
{"options", "forceforbidreason", "no", new ValueContainerBool(&ForceForbidReason), DT_BOOLEAN, NoValidation},
{"options", "useprivmsg", "no", new ValueContainerBool(&UsePrivmsg), DT_BOOLEAN, NoValidation},
{"options", "usestrictprivmsg", "no", new ValueContainerBool(&UseStrictPrivMsg), DT_BOOLEAN, NoValidation},
{"options", "dumpcore", "no", new ValueContainerBool(&DumpCore), DT_BOOLEAN | DT_NORELOAD, NoValidation},
{"options", "logusers", "no", new ValueContainerBool(&LogUsers), DT_BOOLEAN, NoValidation},
{"nickserv", "nick", "NickServ", new ValueContainerChar(&s_NickServ), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty},
{"nickserv", "description", "Nickname Registration Service", new ValueContainerChar(&desc_NickServ), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty},
{"nickserv", "database", "nick.db", new ValueContainerChar(&NickDBName), DT_CHARPTR, ValidateNotEmpty},
@@ -1363,10 +1365,8 @@ bool ValueItem::GetBool()
/*************************************************************************/
Directive directives[] = {
{"DumpCore", {{PARAM_SET, 0, &DumpCore}}},
{"LocalAddress", {{PARAM_STRING, 0, &LocalHost},
{PARAM_PORT, PARAM_OPTIONAL, &LocalPort}}},
{"LogUsers", {{PARAM_SET, PARAM_RELOAD, &LogUsers}}},
{"MysqlHost", {{PARAM_STRING, PARAM_RELOAD, &MysqlHost}}},
{"MysqlUser", {{PARAM_STRING, PARAM_RELOAD, &MysqlUser}}},
{"MysqlPass", {{PARAM_STRING, PARAM_RELOAD, &MysqlPass}}},