1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 11:03:14 +02:00

BUILD : 1.7.6 (448) BUGS : NOTES : Added NSAddAccessOnReg config directive

git-svn-id: svn://svn.anope.org/anope/trunk@448 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@302 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
2004-11-18 18:18:07 +00:00
parent e5e98cc9e5
commit 8e846fa002
9 changed files with 45 additions and 6 deletions
+1
View File
@@ -2,6 +2,7 @@ Anope Version S V N
-------------------
Provided by Anope Dev. <dev@anope.org> - 2004
11/18 A Unable to use registered nicknames as bot nicks from now on. [ #00]
11/18 A NSAddAccessOnReg to control access list on registration. [ #00]
Provided by Trystan <trystan@nomadirc.net> - 2004
11/16 F NickTracking could allow usage of forbidden nick in some cases. [ #00]
+9
View File
@@ -2,6 +2,15 @@ Anope Version S V N
-------------------
** ADDED CONFIGURATION DIRECTIVES **
# NSAddAccessOnReg [OPTIONAL]
#
# When enabled, services will add the usermask of registering users to the
# access list of their newly created account. If you disable this, users
# will always have to identify to nickserv before being recognized, unless
# they manually add an address to the access list of their account.
NSAddAccessOnReg
** MODIFIED CONFIGURATION DIRECTIVES **
** DELETED CONFIGURATION DIRECTIVES **
+2
View File
@@ -2,6 +2,8 @@ Anope Version S V N
-------------------
*** New Strings:
NICK_REGISTERED_NO_MASK
*** Mod Strings:
*** Del Strings:
+9
View File
@@ -872,6 +872,15 @@ NSRestrictGetPass
#NSNickTracking
# NSAddAccessOnReg [OPTIONAL]
#
# When enabled, services will add the usermask of registering users to the
# access list of their newly created account. If you disable this, users
# will always have to identify to nickserv before being recognized, unless
# they manually add an address to the access list of their account.
NSAddAccessOnReg
###########################################################################
#
# ChanServ configuration
+1
View File
@@ -359,6 +359,7 @@ E int NSEmailReg;
E int NSModeOnID;
E int NSRestrictGetPass;
E int NSNickTracking;
E int NSAddAccessOnReg;
E int CSDefFlags;
E int CSMaxReg;
+2
View File
@@ -326,6 +326,8 @@ NICK_ALREADY_REGISTERED
Nickname %s is already registered!
NICK_REGISTERED
Nickname %s registered under your account: %s
NICK_REGISTERED_NO_MASK
Nickname %s registered.
NICK_PASSWORD_IS
Your password is %s - remember this for later use.
NICK_REG_DELAY
+2
View File
@@ -180,6 +180,7 @@ int NSEmailReg;
int NSModeOnID;
int NSRestrictGetPass;
int NSNickTracking;
int NSAddAccessOnReg;
int CSDefNone;
int CSDefKeepTopic;
@@ -559,6 +560,7 @@ Directive directives[] = {
{{PARAM_SET, PARAM_RELOAD, &NSStrictPrivileges}}},
{"NSRestrictGetPass", {{PARAM_SET, PARAM_RELOAD, &NSRestrictGetPass}}},
{"NSNickTracking", {{PARAM_SET, PARAM_RELOAD, &NSNickTracking}}},
{"NSAddAccessOnReg", {{PARAM_SET, PARAM_RELOAD, &NSAddAccessOnReg}}},
{"OperServDB", {{PARAM_STRING, PARAM_RELOAD, &OperDBName}}},
{"OperServName", {{PARAM_STRING, 0, &s_OperServ},
{PARAM_STRING, 0, &desc_OperServ}}},
+14 -5
View File
@@ -2277,9 +2277,14 @@ static int do_confirm(User * u)
na->last_realname = sstrdup(u->realname);
}
na->time_registered = na->last_seen = time(NULL);
na->nc->accesscount = 1;
na->nc->access = scalloc(sizeof(char *), 1);
na->nc->access[0] = create_mask(u);
if (NSAddAccessOnReg) {
na->nc->accesscount = 1;
na->nc->access = scalloc(sizeof(char *), 1);
na->nc->access[0] = create_mask(u);
} else {
na->nc->accesscount = 0;
na->nc->access = NULL;
}
na->nc->language = NSDefLanguage;
if (email)
na->nc->email = sstrdup(email);
@@ -2289,8 +2294,12 @@ static int do_confirm(User * u)
alog("%s: '%s' registered by %s@%s (e-mail: %s)", s_NickServ,
u->nick, u->username, common_get_vhost(u),
(email ? email : "none"));
notice_lang(s_NickServ, u, NICK_REGISTERED, u->nick,
na->nc->access[0]);
if (NSAddAccessOnReg)
notice_lang(s_NickServ, u, NICK_REGISTERED, u->nick,
na->nc->access[0]);
else
notice_lang(s_NickServ, u, NICK_REGISTERED_NO_MASK,
u->nick);
#ifndef USE_ENCRYPTION
notice_lang(s_NickServ, u, NICK_PASSWORD_IS, na->nc->pass);
#endif
+5 -1
View File
@@ -8,10 +8,14 @@
VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="6"
VERSION_BUILD="447"
VERSION_BUILD="448"
# $Log$
#
# BUILD : 1.7.6 (448)
# BUGS :
# NOTES : Added NSAddAccessOnReg config directive
#
# BUILD : 1.7.6 (447)
# BUGS :
# NOTES : New botserv bot nicks need to be unregistered nicks from now on