1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 03:23:13 +02:00

Fixed sending account data for unconfirmed accounts

This commit is contained in:
Adam
2011-08-09 17:21:28 -04:00
parent 6574bca404
commit fa9f6a34ce
3 changed files with 10 additions and 3 deletions
+5 -2
View File
@@ -351,7 +351,8 @@ void User::Identify(NickAlias *na)
}
this->Login(na->nc);
ircdproto->SendAccountLogin(this, this->Account());
if (!na->nc->HasFlag(NI_UNCONFIRMED))
ircdproto->SendAccountLogin(this, this->Account());
ircdproto->SetAutoIdentificationToken(this);
NickAlias *this_na = findnick(this->nick);
@@ -908,9 +909,11 @@ User *do_nick(const Anope::string &source, const Anope::string &nick, const Anop
na->last_seen = Anope::CurTime;
user->UpdateHost();
do_on_id(user);
ircdproto->SetAutoIdentificationToken(user);
if (na->nc->HasFlag(NI_UNCONFIRMED) == false)
{
ircdproto->SetAutoIdentificationToken(user);
user->SetMode(NickServ, UMODE_REGISTERED);
}
Log(NickServ) << user->GetMask() << " automatically identified for group " << user->Account()->display;
}