Change "I".
This commit is contained in:
parent
b9b47c7741
commit
6f83e8a7e9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user