summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-06-23 15:31:57 -0400
committerAdam <Adam@anope.org>2011-06-23 15:31:57 -0400
commit7ec803f6102aaf51b383ebdba865cd810bef1d29 (patch)
treee2679e59048c83135032ba1f1ff8a01d00af9f5b /src
parentb1a075b4621820203523079d78904a82a4d9b2a4 (diff)
Bug #1277 - Dont send account data for unconfirmed nicks
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 6f676e79b..5c993fcf0 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -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;
}