summaryrefslogtreecommitdiff
path: root/modules/core
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-07-05 01:39:11 -0400
committerAdam <Adam@anope.org>2011-07-05 01:39:11 -0400
commitcc3c2b6999fa58a1be791b1ace1f4e7dc83cf9ec (patch)
tree70e5dcf47a79e11cc874cfd9027f75feec7e1886 /modules/core
parentc549aa4e76bde4b52e877738729b1acdbac4334a (diff)
Send account data once an account is confirmed
Diffstat (limited to 'modules/core')
-rw-r--r--modules/core/ns_register.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/core/ns_register.cpp b/modules/core/ns_register.cpp
index 15d5c2331..900e78f7c 100644
--- a/modules/core/ns_register.cpp
+++ b/modules/core/ns_register.cpp
@@ -53,6 +53,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."));