diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-09-26 04:53:48 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-09-26 04:53:48 +0000 |
commit | 927d2717a989d5b5c074390fbb71d8230b13d5d5 (patch) | |
tree | 4287adb71df079cb83696b269767d2ff1d889c6b /src | |
parent | de7b668ad121c193cd874c8e56fa5704407315a9 (diff) |
Made User::CheckAuthenticationToken work properly when using any nick in a group
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2512 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/users.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/users.c b/src/users.c index 1431363ae..b051dbe04 100644 --- a/src/users.c +++ b/src/users.c @@ -348,23 +348,19 @@ void User::SendMessage(const char *source, const std::string &msg) */ void User::CheckAuthenticationToken(const char *svid) { - NickCore *tnc; const char *c; NickAlias *na; - if ((tnc = findcore(this->nick))) + if ((na = findnick(this->nick))) { - if (tnc->GetExt("authenticationtoken", c)) + if (na->nc && na->nc->GetExt("authenticationtoken", c)) { if (svid && c && !strcmp(svid, c)) { /* Users authentication token matches so they should become identified */ - if ((na = findnick(this->nick))) - { - na->status |= NS_IDENTIFIED; - check_memos(this); - this->nc = tnc; - } + na->status |= NS_IDENTIFIED; + check_memos(this); + this->nc = na->nc; } } } |