Skip to content
Snippets Groups Projects
Commit 6beb72d5 authored by rswindell's avatar rswindell
Browse files

Allow sub-code value of 'mail'

parent f8fb7d5b
Branches
Tags
No related merge requests found
......@@ -78,7 +78,7 @@ if(!sub_code) {
exit();
}
if(!msg_area.sub[sub_code.toLowerCase()]) {
if(sub_code != 'mail' && !msg_area.sub[sub_code.toLowerCase()]) {
alert("Invalid sub-code: " + sub_code);
print();
print("Valid sub-codes:");
......@@ -128,4 +128,4 @@ if(!msgbase.save_msg(hdrs, body)) {
alert("Error saving message: " + msgbase.last_error);
exit();
}
print("Message posted successfully to: " + sub_code);
\ No newline at end of file
print("Message posted successfully to: " + sub_code);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment