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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user