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

Added akillonadd directive to operserv block in new config.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1476 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Naram Qashat cyberbotx@cyberbotx.com
2008-10-25 21:07:54 +00:00
parent 9b109412df
commit b6014ca8e5
3 changed files with 10 additions and 3 deletions
+7
View File
@@ -724,4 +724,11 @@ operserv
sglineexpiry = 30d
sqlineexpiry = 30d
szlineexpiry = 30d
/*
* If set, this option will make Services send an AKILL command immediately after it has been
* added with AKILL ADD. This eliminates the need for killing the user after the AKILL has
* been added. This directive is optional.
*/
#akillonadd = yes
}
+1 -1
View File
@@ -383,7 +383,7 @@ E time_t ChankillExpiry;
E time_t SGLineExpiry;
E time_t SQLineExpiry;
E time_t SZLineExpiry;
E int AkillOnAdd;
E bool AkillOnAdd;
E int KillonSGline;
E int KillonSQline;
E int DisableRaw;
+2 -2
View File
@@ -189,7 +189,7 @@ time_t ChankillExpiry;
time_t SGLineExpiry;
time_t SQLineExpiry;
time_t SZLineExpiry;
int AkillOnAdd;
bool AkillOnAdd;
int KillonSGline;
int KillonSQline;
int WallOper;
@@ -652,6 +652,7 @@ int ServerConfig::Read(bool bail)
{"operserv", "sglineexpiry", "0", new ValueContainerTime(&SGLineExpiry), DT_TIME, ValidateNotZero},
{"operserv", "sqlineexpiry", "0", new ValueContainerTime(&SQLineExpiry), DT_TIME, ValidateNotZero},
{"operserv", "szlineexpiry", "0", new ValueContainerTime(&SZLineExpiry), DT_TIME, ValidateNotZero},
{"operserv", "akillonadd", "no", new ValueContainerBool(&AkillOnAdd), 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
@@ -1225,7 +1226,6 @@ bool ValueItem::GetBool()
/*************************************************************************/
Directive directives[] = {
{"AkillOnAdd", {{PARAM_SET, PARAM_RELOAD, &AkillOnAdd}}},
{"BadPassLimit", {{PARAM_POSINT, PARAM_RELOAD, &BadPassLimit}}},
{"BadPassTimeout", {{PARAM_TIME, PARAM_RELOAD, &BadPassTimeout}}},
{"BotCoreModules", {{PARAM_STRING, PARAM_RELOAD, &BotCoreModules}}},