summaryrefslogtreecommitdiff
path: root/src/users.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-04-11 20:09:06 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-04-11 20:09:06 +0000
commite84db77a2caccbaf4513bf671d9530dc73a4b725 (patch)
tree2e17b1b98c5686499c5f0e15b192a60e5449b350 /src/users.c
parent34f10d78fced8ddd5300b631d1fd0760fcbd7aa1 (diff)
Correctly identify a user when they get autoidentified and made db_plain not crash if it gets a founderless channel
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2888 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/users.c')
-rw-r--r--src/users.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/users.c b/src/users.c
index c236efc3b..07ee9c921 100644
--- a/src/users.c
+++ b/src/users.c
@@ -348,10 +348,17 @@ void User::AutoID(const char *account)
if ((tnc = findcore(account)))
{
- this->nc = tnc;
if ((na = findnick(this->nick)) && na->nc == tnc)
{
+ if (na->last_realname)
+ delete [] na->last_realname;
+ na->last_realname = sstrdup(this->realname);
+ na->last_seen = time(NULL);
+ this->Login(na->nc);
+ this->UpdateHost();
check_memos(this);
+
+ FOREACH_MOD(I_OnNickIdentify, OnNickIdentify(this));
}
}
}