diff options
author | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-09 23:26:35 +0000 |
---|---|---|
committer | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-09 23:26:35 +0000 |
commit | 805efb9900984a612aa3dc3f3a00c89b3a52fb12 (patch) | |
tree | e62281ae85195a75c83df5a28d7b12059c0c3a79 /src | |
parent | 8681a87405dd628aacc4bcca83bc120e328551ad (diff) |
Started new mail block in new config, added usemail directive to it.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1620 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/config.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/config.c b/src/config.c index b3762c45f..3e143818c 100644 --- a/src/config.c +++ b/src/config.c @@ -105,7 +105,7 @@ int NickRegDelay; int UseSVSHOLD; int NewsCount; -int UseMail; +bool UseMail; char *SendMailPath; char *SendFrom; int RestrictMail; @@ -636,6 +636,7 @@ int ServerConfig::Read(bool bail) {"nickserv", "restrictgetpass", "no", new ValueContainerBool(&NSRestrictGetPass), DT_BOOLEAN, NoValidation}, {"nickserv", "nicktracking", "no", new ValueContainerBool(&NSNickTracking), DT_BOOLEAN, NoValidation}, {"nickserv", "addaccessonreg", "no", new ValueContainerBool(&NSAddAccessOnReg), DT_BOOLEAN, NoValidation}, + {"mail", "usemail", "no", new ValueContainerBool(&UseMail), DT_BOOLEAN, ValidateEmailReg}, {"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}, @@ -1346,7 +1347,6 @@ Directive directives[] = { {"StrictPasswords", {{PARAM_SET, PARAM_RELOAD, &StrictPasswords}}}, {"TimeoutCheck", {{PARAM_TIME, PARAM_RELOAD, &TimeoutCheck}}}, {"UpdateTimeout", {{PARAM_TIME, PARAM_RELOAD, &UpdateTimeout}}}, - {"UseMail", {{PARAM_SET, PARAM_RELOAD, &UseMail}}}, {"UsePrivmsg", {{PARAM_SET, PARAM_RELOAD, &UsePrivmsg}}}, {"UseStrictPrivMsg", {{PARAM_SET, PARAM_RELOAD, &UseStrictPrivMsg}}}, {"UserKey1", {{PARAM_POSINT, PARAM_RELOAD, &UserKey1}}}, @@ -1959,9 +1959,7 @@ int read_config(int reload) * * rob **/ - if (NSEmailReg) { - CHECK(UseMail); - } else { + if (!NSEmailReg) { delete [] PreNickDBName; PreNickDBName = NULL; NSRExpire = 0; |