1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 14:16:39 +02:00

Bug #1277 - Dont send account data for unconfirmed nicks

This commit is contained in:
Adam
2011-06-23 15:31:57 -04:00
parent b1a075b462
commit 7ec803f610
+5 -2
View File
@@ -356,7 +356,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);
FOREACH_MOD(I_OnNickIdentify, OnNickIdentify(this));
@@ -847,9 +848,11 @@ User *do_nick(const Anope::string &source, const Anope::string &nick, const Anop
{
na->last_seen = Anope::CurTime;
user->UpdateHost();
ircdproto->SetAutoIdentificationToken(user);
if (na->nc->HasFlag(NI_UNCONFIRMED) == false)
{
user->SetMode(nickserv->Bot(), UMODE_REGISTERED);
ircdproto->SetAutoIdentificationToken(user);
}
Log(nickserv->Bot()) << user->GetMask() << " automatically identified for group " << user->Account()->display;
}