1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 20:03:15 +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
+3
View File
@@ -126,7 +126,10 @@ class CommandNSGroup : public Command
FOREACH_MOD(I_OnNickGroup, OnNickGroup(u, target));
ircdproto->SetAutoIdentificationToken(u);
if (target->nc->HasFlag(NI_UNCONFIRMED) == false)
{
u->SetMode(NickServ, UMODE_REGISTERED);
ircdproto->SendAccountLogin(u, u->Account());
}
Log(LOG_COMMAND, u, this) << "makes " << u->nick << " join group of " << target->nick << " (" << target->nc->display << ") (email: " << (!target->nc->email.empty() ? target->nc->email : "none") << ")";
source.Reply(_("You are now in the group of \002%s\002."), target->nick.c_str());
+2 -1
View File
@@ -204,8 +204,9 @@ class CommandNSRegister : public Command
source.Reply(_("If you do not confirm your email address within %s your account will expire."), duration(Config->NSUnconfirmedExpire).c_str());
}
}
else
ircdproto->SendAccountLogin(u, u->Account());
ircdproto->SendAccountLogin(u, u->Account());
ircdproto->SetAutoIdentificationToken(u);
u->lastnickreg = Anope::CurTime;