From 6e48a351753b2d053a1b8c40db2075d7bf15c21e Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sat, 2 May 2015 03:23:55 +0000 Subject: [PATCH] Implemented the SCAN_UNREAD mode bit for scansubs(), scanallsubs(), scanposts(), and listsub(). These functions are exposed in the JS 'bbs' object as scan_subs(), scan_msgs(), and list_msgs(). --- exec/load/sbbsdefs.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/exec/load/sbbsdefs.js b/exec/load/sbbsdefs.js index df8115be44..c5a3048e3f 100644 --- a/exec/load/sbbsdefs.js +++ b/exec/load/sbbsdefs.js @@ -565,14 +565,17 @@ var TELNET_MODE_OFF =(1<<3); /* Not a telnet connection */ /********************************************/ /********************************************/ - /* Bits in mode of bbs.scan_posts() */ + /* Bits in mode of bbs.scan_subs() */ + /* bbs.scan_msgs() */ + /* and bbs.list_msgs() */ /********************************************/ -var SCAN_READ =0; /* Just normal read prompt */ +var SCAN_READ =0; /* Just normal read prompt (all messages) */ var SCAN_CONST =(1<<0); /* Continuous message scanning */ -var SCAN_NEW =(1<<1); /* New scanning */ -var SCAN_BACK =(1<<2); /* Scan the last message if no new */ -var SCAN_TOYOU =(1<<3); /* Scan for messages to you */ -var SCAN_FIND =(1<<4); /* Scan for text in messages */ +var SCAN_NEW =(1<<1); /* Display messages newer than pointer */ +var SCAN_BACK =(1<<2); /* Display most recent message if none new */ +var SCAN_TOYOU =(1<<3); /* Display messages to you only */ +var SCAN_FIND =(1<<4); /* Find text in messages */ +var SCAN_UNREAD =(1<<5); /* Display un-read messages to you only */ /********************************************/ /********************************************/ -- GitLab