Permalink
Browse files

ns_set: Log email address change requests when confirmemailchanges = yes

  • Loading branch information...
Robby- committed Sep 10, 2018
1 parent 368300d commit 42aa330db3ebe52525b04a8f68dbabf170a3661b
Showing with 3 additions and 0 deletions.
  1. +3 −0 modules/commands/ns_set.cpp
@@ -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
{

0 comments on commit 42aa330

Please sign in to comment.