summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby <robby@chatbelgie.be>2018-04-25 16:15:16 +0200
committerRobby <robby@chatbelgie.be>2018-04-25 16:15:16 +0200
commitbafc17472ecce34fc91271c99faa18c27cdf9ed3 (patch)
tree2962035e8ea749dd2ce3a7daa3ce476bafdbd990
parentd25722ddd0766cba2c33614e326d241d3f1f7eeb (diff)
Add 'n' email token for use in the emailchange template, this token gets replaced with the display nickname.
-rw-r--r--modules/commands/ns_set.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/commands/ns_set.cpp b/modules/commands/ns_set.cpp
index dc007289e..11210b8c6 100644
--- a/modules/commands/ns_set.cpp
+++ b/modules/commands/ns_set.cpp
@@ -426,11 +426,13 @@ class CommandNSSetEmail : public Command
subject = subject.replace_all_cs("%e", nc->email);
subject = subject.replace_all_cs("%E", new_email);
+ subject = subject.replace_all_cs("%n", nc->display);
subject = subject.replace_all_cs("%N", Config->GetBlock("networkinfo")->Get<const Anope::string>("networkname"));
subject = subject.replace_all_cs("%c", code);
message = message.replace_all_cs("%e", nc->email);
message = message.replace_all_cs("%E", new_email);
+ message = message.replace_all_cs("%n", nc->display);
message = message.replace_all_cs("%N", Config->GetBlock("networkinfo")->Get<const Anope::string>("networkname"));
message = message.replace_all_cs("%c", code);