mirror of
https://github.com/anope/anope.git
synced 2026-07-10 01:03:13 +02:00
Added restrictopernicks directive to options block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1734 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -442,6 +442,18 @@ options {
|
||||
* for at least the given number of seconds. This directive is optional.
|
||||
*/
|
||||
#nickregdelay = 30
|
||||
|
||||
/*
|
||||
* If set, forbids the registration of nicks that contain an existing
|
||||
* nick with Services access. For example, if Tester is a Services Oper,
|
||||
* you can't register NewTester or Tester123 unless you are an IRC
|
||||
* Operator. This directive is optional.
|
||||
*
|
||||
* NOTE: If you enable this, you will have to be logged in as an IRC
|
||||
* operator in order to register a Services Root nick when setting up
|
||||
* Anope for the first time.
|
||||
*/
|
||||
#restrictopernicks = yes
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
+1
-1
@@ -301,7 +301,7 @@ E bool DumpCore;
|
||||
E bool LogUsers;
|
||||
E int NickRegDelay;
|
||||
E int UseSVSHOLD;
|
||||
E int RestrictOperNicks;
|
||||
E bool RestrictOperNicks;
|
||||
E int NewsCount;
|
||||
E char *Numeric;
|
||||
E int UnRestrictSAdmin;
|
||||
|
||||
+2
-2
@@ -171,7 +171,7 @@ char *BSFantasyCharacter;
|
||||
bool HideStatsO;
|
||||
bool GlobalOnCycle;
|
||||
bool AnonymousGlobal;
|
||||
int RestrictOperNicks;
|
||||
bool RestrictOperNicks;
|
||||
char *GlobalOnCycleMessage;
|
||||
char *GlobalOnCycleUP;
|
||||
static char *ServicesRoot;
|
||||
@@ -671,6 +671,7 @@ int ServerConfig::Read(bool bail)
|
||||
{"options", "globaloncycleup", "", new ValueContainerChar(&GlobalOnCycleUP), DT_CHARPTR, ValidateGlobalOnCycle},
|
||||
{"options", "anonymousglobal", "no", new ValueContainerBool(&AnonymousGlobal), DT_BOOLEAN, NoValidation},
|
||||
{"options", "nickregdelay", "0", new ValueContainerInt(&NickRegDelay), DT_INTEGER, NoValidation},
|
||||
{"options", "restrictopernicks", "no", new ValueContainerBool(&RestrictOperNicks), 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},
|
||||
@@ -1401,7 +1402,6 @@ Directive directives[] = {
|
||||
{"RemoteServer3", {{PARAM_STRING, 0, &RemoteServer3},
|
||||
{PARAM_PORT, 0, &RemotePort3},
|
||||
{PARAM_STRING, 0, &RemotePassword3}}},
|
||||
{"RestrictOperNicks", {{PARAM_SET, PARAM_RELOAD, &RestrictOperNicks}}},
|
||||
{"UseSVSHOLD", {{PARAM_SET, PARAM_RELOAD, &UseSVSHOLD}}},
|
||||
{"UseTS6", {{PARAM_SET, 0, &UseTS6}}},
|
||||
{"UnRestrictSAdmin", {{PARAM_SET, PARAM_RELOAD, &UnRestrictSAdmin}}},
|
||||
|
||||
Reference in New Issue
Block a user