Add "L" command and fix "w".

This commit is contained in:
bʰedoh₂ swé 2025-01-12 04:04:30 +05:00
parent 8e3887d96c
commit 66eb152cfc

View File

@ -94,6 +94,9 @@ while :; do
read a read a
send_message 0"${nick}${a}" send_message 0"${nick}${a}"
;; ;;
L)
length="$(get_message 1)"
;;
l) l)
echo "${length}" echo "${length}"
;; ;;
@ -101,7 +104,7 @@ while :; do
oldlength="${length}" oldlength="${length}"
while :; do while :; do
length="$(get_message 1)" length="$(get_message 1)"
if [ "${oldlength}" -lt "${length}" ]; then if [ "${oldlength}" -ne "${length}" ]; then
break break
fi fi
echo -n . echo -n .