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

Send account data once an account is confirmed

(cherry picked from commit cc3c2b6999)
This commit is contained in:
Adam
2011-07-05 01:39:11 -04:00
parent 0c47383f8b
commit 11fdf16c84
+4
View File
@@ -52,6 +52,10 @@ class CommandNSConfirm : public Command
Log(LOG_COMMAND, u, this) << "to confirm their email";
source.Reply(_("Your email address of \002%s\002 has been confirmed."), u->Account()->email.c_str());
u->Account()->UnsetFlag(NI_UNCONFIRMED);
ircdproto->SendAccountLogin(u, u->Account());
NickAlias *na = findnick(u->nick);
if (na && na->nc == u->Account())
u->SetMode(nickserv->Bot(), UMODE_REGISTERED);
}
else
source.Reply(_("Invalid passcode."));