X-Git-Url: http://git.harvie.cz/?p=mirrors%2Flibpurple-core-answerscripts.git;a=blobdiff_plain;f=purple%2Fanswerscripts.d%2F00-megahal.sh;fp=purple%2Fanswerscripts.d%2F00-megahal.sh;h=ab636c1607726d14f6551de3b45d1a2d1b8334aa;hp=82c61f359471d1eda25882b35c24dea2353d7659;hb=de517ba369532014d55667f27b6c5cedd722a5b2;hpb=a315ba6cac5179b7dd51c5efe4eeecf6503ae150 diff --git a/purple/answerscripts.d/00-megahal.sh b/purple/answerscripts.d/00-megahal.sh index 82c61f3..ab636c1 100755 --- a/purple/answerscripts.d/00-megahal.sh +++ b/purple/answerscripts.d/00-megahal.sh @@ -6,5 +6,5 @@ AI_LOUD=false #enable loud replies (otherwise will be learning only :-) AI_LOUD_UNAVAILABLE=true; #enable loud replies when not available :-) $AI_LOUD_UNAVAILABLE && [ "$ANSW_L_STATUS" != 'available' ] && AI_LOUD=true -AI_ANSW="$({ echo "$ANSW_MSG" && echo -e '\n#quit\n'; } | timeout 23 megahal -p -b -w | tail -n1)" +AI_ANSW="$({ echo "$ANSW_MSG." && echo -e '\n#quit\n'; } | timeout 23 megahal -p -b -w | tail -n1)" $AI_LOUD && [ -n "$AI_ANSW" ] && echo -n "[MegaHALuz]: $AI_ANSW"