mirror of
https://github.com/anope/anope.git
synced 2026-06-28 18:16:38 +02:00
Added restrictmail directive in mail block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1624 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -246,6 +246,17 @@ mail
|
||||
* It should really exist.
|
||||
*/
|
||||
sendfrom = "services@localhost.net"
|
||||
|
||||
/*
|
||||
* If set, SENDPASS will be restricted to IRC operators. This directive is
|
||||
* optional.
|
||||
*
|
||||
* WARNING: If you choose to not enable this option, you should limit the
|
||||
* number of processes that the services user can have at a time (you can
|
||||
* create a special user for this; remember to NEVER launch Services as
|
||||
* root).
|
||||
*/
|
||||
restrictmail = yes
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
+1
-1
@@ -313,7 +313,7 @@ E int HostNumber;
|
||||
E bool UseMail;
|
||||
E char *SendMailPath;
|
||||
E char *SendFrom;
|
||||
E int RestrictMail;
|
||||
E bool RestrictMail;
|
||||
E int MailDelay;
|
||||
E int DontQuoteAddresses;
|
||||
|
||||
|
||||
+2
-2
@@ -108,7 +108,7 @@ int NewsCount;
|
||||
bool UseMail;
|
||||
char *SendMailPath;
|
||||
char *SendFrom;
|
||||
int RestrictMail;
|
||||
bool RestrictMail;
|
||||
int MailDelay;
|
||||
int DontQuoteAddresses;
|
||||
|
||||
@@ -665,6 +665,7 @@ int ServerConfig::Read(bool bail)
|
||||
{"mail", "usemail", "no", new ValueContainerBool(&UseMail), DT_BOOLEAN, ValidateEmailReg},
|
||||
{"mail", "sendmailpath", "", new ValueContainerChar(&SendMailPath), DT_CHARPTR, ValidateMail},
|
||||
{"mail", "sendfrom", "", new ValueContainerChar(&SendFrom), DT_CHARPTR, ValidateMail},
|
||||
{"mail", "restrictmail", "no", new ValueContainerBool(&RestrictMail), DT_BOOLEAN, NoValidation},
|
||||
{"chanserv", "nick", "ChanServ", new ValueContainerChar(&s_ChanServ), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty},
|
||||
{"chanserv", "description", "Channel Registration Service", new ValueContainerChar(&desc_ChanServ), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty},
|
||||
{"chanserv", "database", "chan.db", new ValueContainerChar(&ChanDBName), DT_CHARPTR, ValidateNotEmpty},
|
||||
@@ -1361,7 +1362,6 @@ Directive directives[] = {
|
||||
{"RemoteServer3", {{PARAM_STRING, 0, &RemoteServer3},
|
||||
{PARAM_PORT, 0, &RemotePort3},
|
||||
{PARAM_STRING, 0, &RemotePassword3}}},
|
||||
{"RestrictMail", {{PARAM_SET, PARAM_RELOAD, &RestrictMail}}},
|
||||
{"RestrictOperNicks", {{PARAM_SET, PARAM_RELOAD, &RestrictOperNicks}}},
|
||||
{"HideStatsO", {{PARAM_SET, PARAM_RELOAD, &HideStatsO}}},
|
||||
{"GlobalOnCycle", {{PARAM_SET, PARAM_RELOAD, &GlobalOnCycle}}},
|
||||
|
||||
Reference in New Issue
Block a user