hbbs

bbs.hlirc.net
Log | Files | Refs | README | LICENSE

commit d05da13d78b5b03d9f56a36132b1b1634c475b1b
parent 03b9527ced44b450ad304ab2c0d7fb1210515e01
Author: hhvn <hayden@haydenvh.com>
Date:   Mon,  1 Feb 2021 00:05:25 +0000

etc/intro bin/interface.sh: do not require the sub-id for the 'r' command

Diffstat:
Mbin/interface.sh | 3+++
Metc/intro | 3++-
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/bin/interface.sh b/bin/interface.sh @@ -91,6 +91,9 @@ menu_list(){ o) break ;; r) [ "$arg" = "" ] && prompt "id" arg + echo "$arg" | grep '.' >/dev/null { + arg="$arg.0" + } grep "^${arg%%.*} ${arg##*.}" < $datadir/boards/$board/list >/dev/null && { id=$arg set_mode "read" diff --git a/etc/intro b/etc/intro @@ -21,4 +21,5 @@ 3. Tips/tricks The *s* command doesn't require you to type out the entire board name, the first character should suffice (unless there are boards with names that begin - with the same character). + with the same character). To view the first message in the thread, the sub-id + isn't necessary, eg: 'r 1' will work like 'r 1.0'.