Change "I".

This commit is contained in:
bʰedoh₂ swé 2025-01-12 04:31:31 +05:00
parent b9b47c7741
commit 6f83e8a7e9

View File

@ -91,17 +91,10 @@ while :; do
read cmd
case "${cmd}" in
I)
b=""
while :; do
read c
[[ "${c}" != "." ]] || break
if [ -z ${b} ]; then
b="${c}"
else
b="${b}"$'\n'"${c}"
fi
done
send_message 0"${nick}${b}"
tmp="$(mktemp)"
command ${VISUAL:-${EDITOR:-$(command -v vi)}} "${tmp}"
[ -s "${tmp}" ] && send_message 0"${nick}$(cat "${tmp}")"
rm "${tmp}"
;;
i)
read a