Skip to content

Commit

Permalink
ns_set: Log email address change requests when confirmemailchanges = yes
Browse files Browse the repository at this point in the history
  • Loading branch information
Robby- committed Sep 10, 2018
1 parent 368300d commit 42aa330
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/commands/ns_set.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -499,7 +499,10 @@ class CommandNSSetEmail : public Command
if (!param.empty() && Config->GetModule("nickserv")->Get<bool>("confirmemailchanges") && !source.IsServicesOper()) if (!param.empty() && Config->GetModule("nickserv")->Get<bool>("confirmemailchanges") && !source.IsServicesOper())
{ {
if (SendConfirmMail(source.GetUser(), source.GetAccount(), source.service, param)) 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()); 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 else
{ {
Expand Down

0 comments on commit 42aa330

Please sign in to comment.