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

ns_set: Log email address change requests when confirmemailchanges = yes

This commit is contained in:
Robby
2018-09-11 01:21:19 +02:00
parent 368300d319
commit 42aa330db3
+3
View File
@@ -499,7 +499,10 @@ class CommandNSSetEmail : public Command
if (!param.empty() && Config->GetModule("nickserv")->Get<bool>("confirmemailchanges") && !source.IsServicesOper())
{
if (SendConfirmMail(source.GetUser(), source.GetAccount(), source.service, param))
{
Log(LOG_COMMAND, source, this) << "to request changing the email of " << nc->display << " to " << param;
source.Reply(_("A confirmation e-mail has been sent to \002%s\002. Follow the instructions in it to change your e-mail address."), param.c_str());
}
}
else
{