mirror of https://github.com/nealey/irc-bot
Fix infobot \factoid bug
This commit is contained in:
parent
73f7afea73
commit
f2eea13f8e
|
@ -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#}"
|
||||
|
|
3
infobot
3
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#:}"
|
||||
|
|
Loading…
Reference in New Issue