1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 02:23:12 +02:00

Added logmaxusers directive to operserv block in new config.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1474 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Naram Qashat cyberbotx@cyberbotx.com
2008-10-25 02:53:10 +00:00
parent 4818284fab
commit 24b4a2cd87
3 changed files with 9 additions and 3 deletions
+6
View File
@@ -708,4 +708,10 @@ operserv
* users' modes, etc. This directive is optional.
*/
#superadmin = yes
/*
* If set, causes Services to write a message to the log every time a new user maximum is set.
* This directive is optional.
*/
logmaxusers = yes
}
+1 -1
View File
@@ -375,7 +375,7 @@ E char *GlobalOnCycleMessage;
E char *GlobalOnCycleUP;
E char **ServicesRoots;
E int RootNumber;
E int LogMaxUsers;
E bool LogMaxUsers;
E bool SuperAdmin;
E int LogBot;
E int AutokillExpiry;
+2 -2
View File
@@ -182,7 +182,7 @@ char **ServicesRoots;
int RootNumber;
bool SuperAdmin;
int LogBot;
int LogMaxUsers;
bool LogMaxUsers;
int DisableRaw;
int AutokillExpiry;
int ChankillExpiry;
@@ -646,6 +646,7 @@ int ServerConfig::Read(bool bail)
{"operserv", "autokilldatabase", "akill.db", new ValueContainerChar(&AutokillDBName), DT_CHARPTR, ValidateNotEmpty},
{"operserv", "servicesroot", "", new ValueContainerChar(&ServicesRoot), DT_CHARPTR, ValidateNotEmpty},
{"operserv", "superadmin", "no", new ValueContainerBool(&SuperAdmin), DT_BOOLEAN, NoValidation},
{"operserv", "logmaxusers", "no", new ValueContainerBool(&LogMaxUsers), DT_BOOLEAN, NoValidation},
{NULL, NULL, NULL, NULL, DT_NOTHING, NoValidation}
};
/* These tags can occur multiple times, and therefore they have special code to read them
@@ -1263,7 +1264,6 @@ Directive directives[] = {
{"LocalAddress", {{PARAM_STRING, 0, &LocalHost},
{PARAM_PORT, PARAM_OPTIONAL, &LocalPort}}},
{"LogUsers", {{PARAM_SET, PARAM_RELOAD, &LogUsers}}},
{"LogMaxUsers", {{PARAM_SET, PARAM_RELOAD, &LogMaxUsers}}},
{"MailDelay", {{PARAM_TIME, PARAM_RELOAD, &MailDelay}}},
{"MaxSessionKill", {{PARAM_INT, PARAM_RELOAD, &MaxSessionKill}}},
{"MaxSessionLimit", {{PARAM_POSINT, PARAM_RELOAD, &MaxSessionLimit}}},