1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 19:43:13 +02:00

Added usestrictprivmsg directive to options block in new config.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1723 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
cyberbotx
2008-11-15 20:39:49 +00:00
parent 2aff20acc0
commit dc2176560d
3 changed files with 14 additions and 3 deletions
+11
View File
@@ -379,6 +379,17 @@ options {
* if absolutely necessary.
*/
#useprivmsg = yes
/*
* If set, will force Services to only respond to PRIVMSGs addresses to
* Nick@ServerName - e.g. NickServ@localhost.net. This should be used in
* conjunction with IRCd aliases. This directive is optional.
*
* When using Bahamut, this option will NOT work if the uplink server is
* configured as a services hub. The serviceshub option is not designed to
* be used with Anope.
*/
#usestrictprivmsg = yes
}
/*
+1 -1
View File
@@ -296,7 +296,7 @@ E int KeepLogs;
E int KeepBackups;
E bool ForceForbidReason;
E bool UsePrivmsg;
E int UseStrictPrivMsg;
E bool UseStrictPrivMsg;
E int DumpCore;
E int LogUsers;
E int NickRegDelay;
+2 -2
View File
@@ -98,7 +98,7 @@ int KeepLogs;
int KeepBackups;
bool ForceForbidReason;
bool UsePrivmsg;
int UseStrictPrivMsg;
bool UseStrictPrivMsg;
int DumpCore;
int LogUsers;
int NickRegDelay;
@@ -651,6 +651,7 @@ int ServerConfig::Read(bool bail)
{"options", "keepbackups", "0", new ValueContainerInt(&KeepBackups), DT_INTEGER, NoValidation},
{"options", "forceforbidreason", "no", new ValueContainerBool(&ForceForbidReason), DT_BOOLEAN, NoValidation},
{"options", "useprivmsg", "no", new ValueContainerBool(&UsePrivmsg), DT_BOOLEAN, NoValidation},
{"options", "usestrictprivmsg", "no", new ValueContainerBool(&UseStrictPrivMsg), 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},
@@ -1391,7 +1392,6 @@ Directive directives[] = {
{"GlobalOnCycleMessage",
{{PARAM_STRING, PARAM_RELOAD, &GlobalOnCycleMessage}}},
{"GlobalOnCycleUP", {{PARAM_STRING, PARAM_RELOAD, &GlobalOnCycleUP}}},
{"UseStrictPrivMsg", {{PARAM_SET, PARAM_RELOAD, &UseStrictPrivMsg}}},
{"UseSVSHOLD", {{PARAM_SET, PARAM_RELOAD, &UseSVSHOLD}}},
{"UseTS6", {{PARAM_SET, 0, &UseTS6}}},
{"UnRestrictSAdmin", {{PARAM_SET, PARAM_RELOAD, &UnRestrictSAdmin}}},