Skip to content
Snippets Groups Projects
Commit df799b0a authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Expand @-codes in text/welcome.msg before sending as email to sysop

Fixes issue #463
parent ae29bb57
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -145,6 +145,7 @@ function send_newuser_welcome_msg(fname)
subject: "Welcome to " + system.name + "!"
};
msgtxt = msgtxt.replace(/@(\w+)@/, function (code) { return bbs.atcode(code); });
var result = msgbase.save_msg(hdr, msgtxt);
if(!result)
log(LOG_ERR, "!ERROR " + msgbase.error + " saving mail message");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment