1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 11:56:37 +02:00

Added killonsqline directive to operserv block in new config.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1478 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Naram Qashat cyberbotx@cyberbotx.com
2008-10-26 04:33:40 +00:00
parent c49c0e5d6c
commit 2df19fbcd7
3 changed files with 10 additions and 3 deletions
+7
View File
@@ -738,4 +738,11 @@ operserv
* is optional.
*/
#killonsgline = yes
/*
* If set, this option will make Services send an (SVS)KILL command immediately after SQLINE ADD.
* This eliminates the need for killingthe user after the SQLINE has been added. This directive
* is optional.
*/
#killonsqline = yes
}
+1 -1
View File
@@ -385,7 +385,7 @@ E time_t SQLineExpiry;
E time_t SZLineExpiry;
E bool AkillOnAdd;
E bool KillonSGline;
E int KillonSQline;
E bool KillonSQline;
E int DisableRaw;
E int WallOper;
E int WallBadOS;
+2 -2
View File
@@ -191,7 +191,7 @@ time_t SQLineExpiry;
time_t SZLineExpiry;
bool AkillOnAdd;
bool KillonSGline;
int KillonSQline;
bool KillonSQline;
int WallOper;
int WallBadOS;
int WallOSGlobal;
@@ -654,6 +654,7 @@ int ServerConfig::Read(bool bail)
{"operserv", "szlineexpiry", "0", new ValueContainerTime(&SZLineExpiry), DT_TIME, ValidateNotZero},
{"operserv", "akillonadd", "no", new ValueContainerBool(&AkillOnAdd), DT_BOOLEAN, NoValidation},
{"operserv", "killonsgline", "no", new ValueContainerBool(&KillonSGline), DT_BOOLEAN, NoValidation},
{"operserv", "killonsqline", "no", new ValueContainerBool(&KillonSQline), 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
@@ -1261,7 +1262,6 @@ Directive directives[] = {
{"LogBot", {{PARAM_SET, PARAM_RELOAD, &LogBot}}},
{"KeepBackups", {{PARAM_INT, PARAM_RELOAD, &KeepBackups}}},
{"KeepLogs", {{PARAM_INT, PARAM_RELOAD, &KeepLogs}}},
{"KillonSQline", {{PARAM_SET, PARAM_RELOAD, &KillonSQline}}},
{"AddAkiller", {{PARAM_SET, PARAM_RELOAD, &AddAkiller}}},
{"LimitSessions", {{PARAM_SET, 0, &LimitSessions}}},
{"LocalAddress", {{PARAM_STRING, 0, &LocalHost},