Change "I".
This commit is contained in:
parent
b9b47c7741
commit
6f83e8a7e9
@ -91,17 +91,10 @@ while :; do
|
|||||||
read cmd
|
read cmd
|
||||||
case "${cmd}" in
|
case "${cmd}" in
|
||||||
I)
|
I)
|
||||||
b=""
|
tmp="$(mktemp)"
|
||||||
while :; do
|
command ${VISUAL:-${EDITOR:-$(command -v vi)}} "${tmp}"
|
||||||
read c
|
[ -s "${tmp}" ] && send_message 0"${nick}$(cat "${tmp}")"
|
||||||
[[ "${c}" != "." ]] || break
|
rm "${tmp}"
|
||||||
if [ -z ${b} ]; then
|
|
||||||
b="${c}"
|
|
||||||
else
|
|
||||||
b="${b}"$'\n'"${c}"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
send_message 0"${nick}${b}"
|
|
||||||
;;
|
;;
|
||||||
i)
|
i)
|
||||||
read a
|
read a
|
||||||
|
Loading…
Reference in New Issue
Block a user