summaryrefslogtreecommitdiff
path: root/src/users.c
diff options
context:
space:
mode:
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));
}
}
}