Commit 6beb72d5 authored by rswindell's avatar rswindell
Browse files

Allow sub-code value of 'mail'

parent f8fb7d5b
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment