Fix infobot \factoid bug

This commit is contained in:
Neale Pickett 2011-01-06 21:17:16 -07:00
parent 73f7afea73
commit f2eea13f8e
2 changed files with 1 additions and 3 deletions

View File

@ -41,7 +41,6 @@ case $command in
raw "PRIVMSG %s :Thanks for the invitation, %s." "$forum" "$sender"
;;
esac | while read -r line; do
echo $line 1>&2
case "$line" in
*)
printf "%s\r\n" "${line#}"

View File

@ -63,7 +63,6 @@ EOF
;;
*)
resp=$(lookup "$text" | shuf -n 1 | sed "s/\$sender/$sender/")
echo "resp: $resp" 1>&2
case "$resp" in
"")
exit 1
@ -72,7 +71,7 @@ EOF
echo "Someone's up to no good!"
;;
\\*)
printf "%s" "${resp#\\}"
printf "%s\n" "${resp#\\}"
;;
:*)
printf '\001ACTION %s\001\n' "${resp#:}"