mirror of
https://github.com/anope/anope.git
synced 2026-06-30 11:16:38 +02:00
Added limitsessions directive to operserv block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1481 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -785,4 +785,19 @@ operserv
|
||||
* This directive is optional, if left blank, there will be no notifications.
|
||||
*/
|
||||
notifications="osglobal osmode osclearmodes oskick osakill ossgline ossqline osszline osnoop osjupe osraw getpass setpass forbid drop"
|
||||
|
||||
/*
|
||||
* Enables session limiting. Session limiting prevents users from connecting more than a certain
|
||||
* number of times from the same host at the same time - thus preventing most types of cloning.
|
||||
* Once a host reaches it's session limit, all clients attempting to connect from that host will
|
||||
* be killed. Exceptions to the default session limit can be defined via the exception list. It
|
||||
* should be noted that session limiting, along with a large exception list, can degrade Services'
|
||||
* performance.
|
||||
*
|
||||
* See the source and comments in sessions.c and the online help for more information about
|
||||
* session limiting.
|
||||
*
|
||||
* This directive is optional.
|
||||
*/
|
||||
limitsessions = yes
|
||||
}
|
||||
|
||||
+1
-1
@@ -442,7 +442,7 @@ E int NickServCoreNumber;
|
||||
E char **ChanServCoreModules;
|
||||
E int ChanServCoreNumber;
|
||||
|
||||
E int LimitSessions;
|
||||
E bool LimitSessions;
|
||||
E int DefSessionLimit;
|
||||
E int ExceptionExpiry;
|
||||
E int MaxSessionKill;
|
||||
|
||||
+2
-2
@@ -217,7 +217,7 @@ bool WallGetpass;
|
||||
bool WallSetpass;
|
||||
int AddAkiller;
|
||||
|
||||
int LimitSessions;
|
||||
bool LimitSessions;
|
||||
int DefSessionLimit;
|
||||
int ExceptionExpiry;
|
||||
int MaxSessionKill;
|
||||
@@ -658,6 +658,7 @@ int ServerConfig::Read(bool bail)
|
||||
{"operserv", "killonsqline", "no", new ValueContainerBool(&KillonSQline), DT_BOOLEAN, NoValidation},
|
||||
{"operserv", "disableraw", "no", new ValueContainerBool(&DisableRaw), DT_BOOLEAN, NoValidation},
|
||||
{"operserv", "notifications", "", new ValueContainerString(&OSNotifications), DT_STRING, NoValidation},
|
||||
{"operserv", "limitsessions", "no", new ValueContainerBool(&LimitSessions), 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
|
||||
@@ -1265,7 +1266,6 @@ Directive directives[] = {
|
||||
{"KeepBackups", {{PARAM_INT, PARAM_RELOAD, &KeepBackups}}},
|
||||
{"KeepLogs", {{PARAM_INT, PARAM_RELOAD, &KeepLogs}}},
|
||||
{"AddAkiller", {{PARAM_SET, PARAM_RELOAD, &AddAkiller}}},
|
||||
{"LimitSessions", {{PARAM_SET, 0, &LimitSessions}}},
|
||||
{"LocalAddress", {{PARAM_STRING, 0, &LocalHost},
|
||||
{PARAM_PORT, PARAM_OPTIONAL, &LocalPort}}},
|
||||
{"LogUsers", {{PARAM_SET, PARAM_RELOAD, &LogUsers}}},
|
||||
|
||||
Reference in New Issue
Block a user