From 66eb152cfc5aedf17887ad24ff874f76871c01c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?b=CA=B0edoh=E2=82=82=20sw=C3=A9?= Date: Sun, 12 Jan 2025 04:04:30 +0500 Subject: [PATCH] Add "L" command and fix "w". --- dobroho_vechora.bash | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dobroho_vechora.bash b/dobroho_vechora.bash index 5491c2c..55474fe 100755 --- a/dobroho_vechora.bash +++ b/dobroho_vechora.bash @@ -94,6 +94,9 @@ while :; do read a send_message 0"${nick}${a}" ;; + L) + length="$(get_message 1)" + ;; l) echo "${length}" ;; @@ -101,7 +104,7 @@ while :; do oldlength="${length}" while :; do length="$(get_message 1)" - if [ "${oldlength}" -lt "${length}" ]; then + if [ "${oldlength}" -ne "${length}" ]; then break fi echo -n .