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

Add a 'notify_sysop' option (set to true or a user number in modopts.ini)

Will notify the sysop via email and telegram when a new user account has
been created. For Morpheus (MORPHEUS)
parent e631451e
Branches
Tags
No related merge requests found
......@@ -111,6 +111,9 @@ if(options.send_welcome && file_exists(welcome_msg) && !qnet && user.number>1) {
log(LOG_INFO,"Sent new user welcome e-mail");
}
if(options.notify_sysop)
system.notify(options.notify_sysop, format("New user (#%u) created: %s", user.number, user.alias));
function send_newuser_welcome_msg(fname)
{
file = new File(fname);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment