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

Check console.aborted flag in display loops

So that hitting 'N' at pause prompt will abort the loop.
Reported by phigz via irc.synchro.net
parent ad64ec3c
Branches
Tags
1 merge request!455Update branch with changes from master
......@@ -65,7 +65,7 @@ while(bbs.online) {
bbs.menu("text_sec");
else {
console.print(bbs.text(TextSectionLstHdr));
for(var i = 0; i < usrsec.length; i++) {
for(var i = 0; i < usrsec.length && !console.aborted; i++) {
if(i<9) console.print(' ');
console.add_hotspot(i + 1);
console.print(format(bbs.text(TextSectionLstFmt), i + 1, usrsec[i].name));
......@@ -85,7 +85,7 @@ while(bbs.online) {
bbs.menu(menu);
else {
console.print(format(bbs.text(TextFilesLstHdr), usrsec[cursec].name));
for(var i = 0; i < list.length; i++) {
for(var i = 0; i < list.length && !console.aborted; i++) {
console.add_hotspot(i + 1);
console.print(format(bbs.text(TextFilesLstFmt), i + 1, list[i].desc + "\r\n"));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment