From f2eea13f8ee498b98b4635788964218a4231024b Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Thu, 6 Jan 2011 21:17:16 -0700 Subject: [PATCH] Fix infobot \factoid bug --- cobalt-handler | 1 - infobot | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/cobalt-handler b/cobalt-handler index c146825..85d42d5 100755 --- a/cobalt-handler +++ b/cobalt-handler @@ -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#}" diff --git a/infobot b/infobot index b91eebe..e3e46c6 100755 --- a/infobot +++ b/infobot @@ -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#:}"