From 927d2717a989d5b5c074390fbb71d8230b13d5d5 Mon Sep 17 00:00:00 2001 From: Adam- Date: Sat, 26 Sep 2009 04:53:48 +0000 Subject: 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 --- src/users.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src') 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; } } } -- cgit