1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 02:46:37 +02:00

Consistently use email instead of e-mail.

This commit is contained in:
Sadie Powell
2024-03-07 22:42:57 +00:00
parent 76e5480be9
commit 4e04a11995
13 changed files with 81 additions and 81 deletions
+3 -3
View File
@@ -88,7 +88,7 @@ bool Mail::Send(User *u, NickCore *nc, BotInfo *service, const Anope::string &su
else if (Anope::CurTime - u->lastmail < b->Get<time_t>("delay"))
u->SendMessage(service, _("Please wait \002%lu\002 seconds and retry."), (unsigned long)b->Get<time_t>("delay") - (Anope::CurTime - u->lastmail));
else if (nc->email.empty())
u->SendMessage(service, _("E-mail for \002%s\002 is invalid."), nc->display.c_str());
u->SendMessage(service, _("Email for \002%s\002 is invalid."), nc->display.c_str());
else
{
u->lastmail = nc->lastmail = Anope::CurTime;
@@ -115,9 +115,9 @@ bool Mail::Send(NickCore *nc, const Anope::string &subject, const Anope::string
}
/**
* Checks whether we have a valid, common e-mail address.
* Checks whether we have a valid, common email address.
* This is NOT entirely RFC compliant, and won't be so, because I said
* *common* cases. ;) It is very unlikely that e-mail addresses that
* *common* cases. ;) It is very unlikely that email addresses that
* are really being used will fail the check.
*
* @param email Email to Validate