summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-04-06 10:13:03 -0400
committerAdam <Adam@anope.org>2011-04-06 10:13:03 -0400
commit9535541f5aabeae845cc14e407dad29ed023b33d (patch)
tree4b41c0b3a0c066b466c772662bb58de871b08bae
parent711a570d241912d0e2ab1ff26c894f3abd379266 (diff)
Fixed setting +r on nick ownership, lost somewhere in revision fbae33
-rw-r--r--src/users.cpp3
1 files changed, 2 insertions, 1 deletions
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);