From 9535541f5aabeae845cc14e407dad29ed023b33d Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 6 Apr 2011 10:13:03 -0400 Subject: [PATCH] Fixed setting +r on nick ownership, lost somewhere in revision fbae33 --- src/users.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/users.cpp b/src/users.cpp index 4d9246a14..f2206be7f 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -354,7 +354,8 @@ void User::Identify(NickAlias *na) ircdproto->SendAccountLogin(this, this->Account()); ircdproto->SetAutoIdentificationToken(this); - if (na->nc->HasFlag(NI_UNCONFIRMED) == false) + NickAlias *this_na = findnick(this->nick); + if (this_na && this_na->nc == na->nc && this_na->nc->HasFlag(NI_UNCONFIRMED) == false) this->SetMode(NickServ, UMODE_REGISTERED); if (ircd->vhost) do_on_id(this);