summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/users.cpp b/src/users.cpp
index e1ed207ec..f09cdeed2 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -361,9 +361,9 @@ void User::Identify(NickAlias *na)
}
this->Login(na->nc);
- if (!na->nc->HasFlag(NI_UNCONFIRMED))
- ircdproto->SendAccountLogin(this, this->Account());
- ircdproto->SetAutoIdentificationToken(this);
+ ircdproto->SendLogin(this);
+ if (!Config->NoNicknameOwnership && na->nc == this->Account() && na->nc->HasFlag(NI_UNCONFIRMED) == false)
+ this->SetMode(findbot(Config->NickServ), UMODE_REGISTERED);
FOREACH_MOD(I_OnNickIdentify, OnNickIdentify(this));