From bafc17472ecce34fc91271c99faa18c27cdf9ed3 Mon Sep 17 00:00:00 2001 From: Robby Date: Wed, 25 Apr 2018 16:15:16 +0200 Subject: Add 'n' email token for use in the emailchange template, this token gets replaced with the display nickname. --- modules/commands/ns_set.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/commands/ns_set.cpp') 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("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("networkname")); message = message.replace_all_cs("%c", code); -- cgit