summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-09-26 04:53:48 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-09-26 04:53:48 +0000
commit927d2717a989d5b5c074390fbb71d8230b13d5d5 (patch)
tree4287adb71df079cb83696b269767d2ff1d889c6b /src
parentde7b668ad121c193cd874c8e56fa5704407315a9 (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.c14
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;
}
}
}