example: clean up the bot script

pull/1/head
Michael Santos 9 years ago
parent 16ec036134
commit c4499fa4df

@ -29,14 +29,10 @@ bot() {
OFS=$IFS OFS=$IFS
IFS=: IFS=:
set -- $line set -- $line
if [ "$#" -ne "4" ]; then
continue
fi
if [ "$1" = "p" ]; then if [ "$1" = "p" ]; then
decode "$line" 1>&2 decode "$line" 1>&2
echo 1>&2 echo 1>&2
fi elif [ "$1" = "m" ]; then
if [ "$1" = "m" ]; then
USER="$(decode ${3#*%2F})" USER="$(decode ${3#*%2F})"
IFS=$OFS IFS=$OFS
MSG="$(decode $4)" MSG="$(decode $4)"

Loading…
Cancel
Save