diff options
author | atoledo atoledo@31f1291d-b8d6-0310-a050-a5561fc1590b <atoledo atoledo@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-05-24 21:53:45 +0000 |
---|---|---|
committer | atoledo atoledo@31f1291d-b8d6-0310-a050-a5561fc1590b <atoledo atoledo@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-05-24 21:53:45 +0000 |
commit | 4390d0ff7490a775bc2ee2ed3461f9eabb4e1f23 (patch) | |
tree | e3953c14468aeb0032fd321b6b78c32a19e53022 /users.c | |
parent | d5b6d250d5456bd62a743c6058358d900a4d0d4b (diff) |
BUILD : 1.7.3 (122) BUGS : None NOTES : New NSNickTracking directive to track nick cores when changing nicks.
git-svn-id: svn://svn.anope.org/anope/trunk@122 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@96 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'users.c')
-rw-r--r-- | users.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -712,6 +712,11 @@ User *do_nick(const char *source, char *nick, char *username, char *host, user->na->status |= NS_IDENTIFIED; check_memos(user); nc_changed = 0; + + /* Start nick tracking if available */ + if (NSNickTracking) + nsStartNickTracking(user); + } else if (svid != 1) { /* Resets the svid because it doesn't match */ user->svid = 1; @@ -789,6 +794,12 @@ User *do_nick(const char *source, char *nick, char *username, char *host, } /* if (!*source) */ + /* Check for nick tracking to bypass identification */ + if (NSNickTracking && nsCheckNickTracking(user)) { + user->na->status |= NS_IDENTIFIED; + nc_changed = 0; + } + if (nc_changed || !nick_recognized(user)) { if (validate_user(user)) check_memos(user); |