diff options
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp index c85aadd5b..661c75671 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -371,7 +371,9 @@ void User::Identify(NickAlias *na) this->Login(na->nc); ircdproto->SendLogin(this); - if (!Config->NoNicknameOwnership && na->nc == this->Account() && na->nc->HasFlag(NI_UNCONFIRMED) == false) + + NickAlias *this_na = findnick(this->nick); + if (!Config->NoNicknameOwnership && this_na && this_na->nc == na->nc && na->nc->HasFlag(NI_UNCONFIRMED) == false) this->SetMode(findbot(Config->NickServ), UMODE_REGISTERED); FOREACH_MOD(I_OnNickIdentify, OnNickIdentify(this)); |