Skip to content

Commit 109f8af

Browse files
committed
Implemented read by number (issue #130) from message read prompt as well now
1 parent 37725e1 commit 109f8af

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

load/dmbase.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,24 @@ msg_base = {
212212
e.number + " back. :(\n");
213213
}
214214
break;
215+
case '0':
216+
case '1':
217+
case '2':
218+
case '3':
219+
case '4':
220+
case '5':
221+
case '6':
222+
case '7':
223+
case '8':
224+
case '9': //we're going to read message by number here
225+
//there will, of course, have to be some error checking for
226+
//trying to hit out of bounds messages if dispMsg() doesn't
227+
//already have it
228+
console.putmsg(green + high_intensity + "Go to message #> ");
229+
console.ungetstr(uchoice); //put it back on the input stack
230+
msg_base.dispMsg(new MsgBase(bbs.cursub_code),
231+
console.getnum(maxMsgs), false);
232+
break;
215233
default:
216234
console.putmsg(normal + yellow + "Invalid choice\n");
217235
break;

0 commit comments

Comments
 (0)