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 .