1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 10:06:37 +02:00

Fixed detecting when to set +r and fixed crash on shutdown introduced by the last commit

This commit is contained in:
Adam
2012-02-14 19:03:09 -05:00
parent a9772cde21
commit db59f1a70f
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -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));