diff options
author | Adam <Adam@anope.org> | 2011-07-05 01:39:11 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-08-09 17:22:31 -0400 |
commit | 11fdf16c8431e78343b5891a7b91c2b57306f240 (patch) | |
tree | b3bfd08ea0eb21a279081b7b6de6100b7eb76cd7 /modules | |
parent | 0c47383f8baac986f51151cc80b868e63a09de15 (diff) |
Send account data once an account is confirmed
(cherry picked from commit cc3c2b6999fa58a1be791b1ace1f4e7dc83cf9ec)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/core/ns_register.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/core/ns_register.cpp b/modules/core/ns_register.cpp index 964f32bec..f35da2c46 100644 --- a/modules/core/ns_register.cpp +++ b/modules/core/ns_register.cpp @@ -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.")); |