hbbs

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

commit 715cab1295d9d74b4660ca8bb610f4e7822f5aeb
parent 3165ea1e4838e7ddbed00ce63e0ba6a659b94e32
Author: hhvn <hayden@haydenvh.com>
Date:   Mon,  1 Feb 2021 13:21:54 +0000

bin/interface.sh: don't use ctrl+d to end posts

Diffstat:
Mbin/interface.sh | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/bin/interface.sh b/bin/interface.sh @@ -107,9 +107,9 @@ menu_list(){ n) check_post_perm $board $user || continue [ "$arg" = "" ] && prompt "Subject" subject || subject="$arg" - info "Type ctrl+d to end the post" + info "Type a full stop (.) on a line to end the post" file="$datadir/boards/$board/$(echo "$(find $datadir/boards/$board/ -type f | wc -l) + 1" | bc).post" - cat > $file + sed '/^\.$/q' > $file save="" prompt "Save mesage (${k}y${s}/${k}n${s})" save [ "$save" != "y" ] && { @@ -183,10 +183,10 @@ menu_read(){ b) set_mode boards; break ;; l) check_reply_perm $board $user || continue - info "Type ctrl+d save the post" + info "Type a full stop (.) on a line to end the post" ofile="$file" file="$datadir/boards/$board/$(echo "$(find $datadir/boards/$board/ -type f | wc -l) + 1" | bc).post" - cat > $file + sed '/^\.$/q' > $file save="" prompt "Save mesage (${k}y${s}/${k}n${s})" save [ "$save" != "y" ] && {