Skip to content
Snippets Groups Projects
Commit 45bb34cc authored by rswindell's avatar rswindell
Browse files

Require a '@' in the email address to attempt the sending of an application

email (via Internet).
Support code_prefix's from the init-fidonet.ini. If undefined (not present),
the default will be used (e.g. "<netname>_"), if blank, non will be used -
for the creation of the new message group during setup.
parent b5cec671
No related branches found
No related tags found
No related merge requests found
......@@ -418,7 +418,7 @@ while((!sysop || !confirm("Your name is '" + sysop + "'")) && !aborted())
/***********************************************/
/* SEND NODE NUMBER REQUEST NETMAIL (Internet) */
/***********************************************/
if(your.node === 9999 && network.email
if(your.node === 9999 && network.email && network.email.indexOf('@') > 0
&& confirm("Send a node number application to " + network.email)) {
var result = send_app_netmail(network.email);
if(result !== true) {
......@@ -458,7 +458,8 @@ if(!msg_area.grp[netname]
"name": netname,
"description": netname,
"ars": "",
"code_prefix": netname.toUpperCase() + "_"
"code_prefix": network.code_prefix === undefined
? (netname.toUpperCase() + "_") : network.code_prefix
});
}
if(confirm("Save Changes to Message Area configuration file: msgs.cnf")) {
......
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