summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby <robby@chatbelgie.be>2018-09-11 01:21:19 +0200
committerRobby <robby@chatbelgie.be>2018-09-11 01:21:19 +0200
commit42aa330db3ebe52525b04a8f68dbabf170a3661b (patch)
tree524126495d9e1efb951b53677b68174e2a729ff2
parent368300d31990eeafc0c7835a21bc0f0835fed71b (diff)
ns_set: Log email address change requests when confirmemailchanges = yes
-rw-r--r--modules/commands/ns_set.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/commands/ns_set.cpp b/modules/commands/ns_set.cpp
index 886f8d2d4..249422960 100644
--- a/modules/commands/ns_set.cpp
+++ b/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
{