summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/users.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/users.c b/src/users.c
index 8f51da449..a1a932e41 100644
--- a/src/users.c
+++ b/src/users.c
@@ -771,7 +771,8 @@ User *do_nick(const char *source, const char *nick, const char *username, const
ntmp->last_usermask = new char[user->GetIdent().length() + user->GetDisplayedHost().length() + 2];
sprintf(ntmp->last_usermask, "%s@%s",
user->GetIdent().c_str(), user->GetDisplayedHost().c_str());
-
+ ircdproto->SendAccountLogin(user, user->nc);
+ ircdproto->SetAutoIdentificationToken(user);
alog("%s: %s!%s@%s automatically identified for nick %s", s_NickServ, user->nick, user->GetIdent().c_str(), user->host, user->nick);
}
@@ -780,7 +781,8 @@ User *do_nick(const char *source, const char *nick, const char *username, const
{
if (nick_identified(user))
{
- // XXX: I assume we need to reset +r on here.
+ ircdproto->SendAccountLogin(user, user->nc);
+ ircdproto->SetAutoIdentificationToken(user);
}
}