1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 02:36:38 +02:00

Made the message for unconfirmed nicks relevant to the ns_register registration setting

This commit is contained in:
lethality
2013-06-06 17:28:59 +01:00
parent 6ab6eca0a6
commit ebda113f44
+5 -1
View File
@@ -328,7 +328,11 @@ class NickServCore : public Module, public NickServService
if (u->Account()->HasExt("UNCONFIRMED"))
{
u->SendMessage(NickServ, _("Your email address is not confirmed. To confirm it, follow the instructions that were emailed to you when you registered."));
const Anope::string &nsregister = Config->GetModule("ns_register")->Get<const Anope::string>("registration");
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."));
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");