Skip to content
Snippets Groups Projects
Commit 680e30d8 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 2135677e
Branches
Tags
No related merge requests found
......@@ -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.
Please register or to comment