1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 05:33:12 +02:00

Add 'n' email token for use in the emailchange template, this token gets replaced with the display nickname.

This commit is contained in:
Robby
2018-04-25 16:15:16 +02:00
parent d25722ddd0
commit bafc17472e
+2
View File
@@ -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);