diff options
author | Adam <Adam@anope.org> | 2011-08-09 17:21:28 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-08-09 17:21:28 -0400 |
commit | fa9f6a34ce5869e190811438c12c95942383fbfb (patch) | |
tree | 6ca0498dc13190e3a4fa6ad7aaa5c53ec3866966 /src | |
parent | 6574bca40419c877e9fdebf76f75035db608f8e4 (diff) |
Fixed sending account data for unconfirmed accounts
Diffstat (limited to 'src')
-rw-r--r-- | src/users.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp index f2206be7f..9c076363a 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -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; } |