diff options
author | Adam <Adam@anope.org> | 2014-02-11 18:08:09 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-02-11 18:08:09 -0500 |
commit | 8c8e6d464a28079531dfd2c4743e14beed611915 (patch) | |
tree | a00ea666162147316464d9b01f9aee0e09619789 /modules/commands/ns_register.cpp | |
parent | 22976b8a7cf9ba374eaa9967287b17d059b9b389 (diff) |
Make initial registration notices with mail less repetitive
Diffstat (limited to 'modules/commands/ns_register.cpp')
-rw-r--r-- | modules/commands/ns_register.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/modules/commands/ns_register.cpp b/modules/commands/ns_register.cpp index 434e7d690..47f47ffc5 100644 --- a/modules/commands/ns_register.cpp +++ b/modules/commands/ns_register.cpp @@ -223,15 +223,7 @@ class CommandNSRegister : public Command else if (nsregister.equals_ci("mail")) { nc->Extend<bool>("UNCONFIRMED"); - if (SendRegmail(u, na, source.service)) - { - time_t unconfirmed_expire = Config->GetModule("ns_register")->Get<time_t>("unconfirmedexpire", "1d"); - BotInfo *bi; - Anope::string cmd; - if (Command::FindCommandFromService("nickserv/confirm", bi, cmd)) - source.Reply(_("A passcode has been sent to %s, please type \002%s%s %s <passcode>\002 to confirm your email address."), email.c_str(), Config->StrictPrivmsg.c_str(), bi->nick.c_str(), cmd.c_str()); - source.Reply(_("If you do not confirm your email address within %s your account will expire."), Anope::Duration(unconfirmed_expire, source.GetAccount()).c_str()); - } + SendRegmail(NULL, na, source.service); } if (u) @@ -368,12 +360,12 @@ class NSRegister : public Module if (nsregister.equals_ci("admin")) u->SendMessage(NickServ, _("All new accounts must be validated by an administrator. Please wait for your registration to be confirmed.")); else - u->SendMessage(NickServ, _("Your email address is not confirmed. To confirm it, follow the instructions that were emailed to you when you registered.")); + u->SendMessage(NickServ, _("Your email address is not confirmed. To confirm it, follow the instructions that were emailed to you.")); const NickAlias *this_na = NickAlias::Find(u->Account()->display); time_t time_registered = Anope::CurTime - this_na->time_registered; time_t unconfirmed_expire = Config->GetModule(this)->Get<time_t>("unconfirmedexpire", "1d"); if (unconfirmed_expire > time_registered) - u->SendMessage(NickServ, _("Your account will expire, if not confirmed, in %s"), Anope::Duration(unconfirmed_expire - time_registered, u->Account()).c_str()); + u->SendMessage(NickServ, _("Your account will expire, if not confirmed, in %s."), Anope::Duration(unconfirmed_expire - time_registered, u->Account()).c_str()); } } |