Skip to content
Snippets Groups Projects
Commit 974e6311 authored by echicken's avatar echicken
Browse files

Default addr_list to an empty array if userprops fails to read ####.ini

parent d241bd0d
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ while(bbs.online) {
if(!name)
break;
if(name.indexOf('@') > 0) {
bbs.netmail(name);
bbs.netmail(name);
break;
}
var number = bbs.finduser(name);
......@@ -57,7 +57,7 @@ while(bbs.online) {
if((netmail&NMAIL_FILE) && !console.noyes("Attach a file"))
wm_mode = WM_FILE;
console.print(bbs.text(text.EnterNetMailAddress));
var addr_list = userprops.get("netmail sent", "address", []);
var addr_list = userprops.get("netmail sent", "address", []) || [];
var addr = console.getstr(60, K_LINE, addr_list);
if(!addr || console.aborted)
break;
......
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