Fix the parazyd bug. - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit d631072ac1dad6d80b8f6f25c88a03f96ddc75eb DIR parent 73081e14ab59fa19168f71e10adcc86d57ff1915 HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Fri, 13 Apr 2018 12:44:51 +0200 Fix the parazyd bug. Diffstat: M annna-start-services | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) --- DIR diff --git a/annna-start-services b/annna-start-services @@ -110,16 +110,21 @@ then ;; esac - word="$(printf "%s\n" "${word}" | sed 's, ,_,g')" - purl="" dresult="$(dict "dict://parazyd.org/d:${word}")" - case "$?" in + derr=$? + if [ $derr -eq 20 ]; + then + dresult="$(dict "dict://parazyd.org/d:${word}")" + derr2="$?" + [ $derr2 -ne $derr ] && derr=$derr2 + fi + case "$derr" in 0|21) purl="$(printf "%s" "${dresult}" | /br/bin/bitreich-paste)" ;; 20) - purl="No matches found. Try again, if you think you hit the grparazyd bug." + purl="No matches found." ;; 1) purl="Parse error."