mirror of https://github.com/nealey/irc-bot
Fix "\\\007NOTICE $sender :foo" factoid problem
This commit is contained in:
parent
13202d4ebd
commit
e196c6a3e2
|
@ -7,15 +7,19 @@ command=$1; export command; shift
|
||||||
# $* is now args
|
# $* is now args
|
||||||
text=$(cat)
|
text=$(cat)
|
||||||
|
|
||||||
|
join () {
|
||||||
|
printf '\aJOIN %s\n' "$1"
|
||||||
|
}
|
||||||
|
|
||||||
case $command in
|
case $command in
|
||||||
001)
|
001)
|
||||||
printf '\aJOIN #woozle\n'
|
join "#woozle"
|
||||||
printf '\aJOIN #foozle\n'
|
join "#foozle"
|
||||||
printf '\aJOIN #bot\n'
|
join "#bot"
|
||||||
;;
|
;;
|
||||||
PRIVMSG)
|
PRIVMSG)
|
||||||
case "$forum" in
|
case "$forum" in
|
||||||
\#woozle|\#foozle)
|
\#*)
|
||||||
./firebot "$text" || \
|
./firebot "$text" || \
|
||||||
./whuffie woozle.whuffie.cdb "$text" || \
|
./whuffie woozle.whuffie.cdb "$text" || \
|
||||||
./infobot woozle.factoids.cdb "$text"
|
./infobot woozle.factoids.cdb "$text"
|
||||||
|
@ -23,7 +27,8 @@ case $command in
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
INVITE)
|
INVITE)
|
||||||
printf '\aJOIN %s\n' "$forum"
|
join "$forum"
|
||||||
|
echo "Thanks for the invitation, $sender."
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue