X-Git-Url: http://git.harvie.cz/?p=mirrors%2Flibpurple-core-answerscripts.git;a=blobdiff_plain;f=purple%2Fanswerscripts.d%2Fautokiss.sh;h=572dc928f6cda7e8f6b6c274fedc25d36091eacb;hp=46dc7126e7b9e07aec3056195837da539f533b87;hb=3971900dcde58c50b85eabf0d4bcf5f20ba1114a;hpb=fe6fec76e1c7705e9e80f923f39c76a4768da031 diff --git a/purple/answerscripts.d/autokiss.sh b/purple/answerscripts.d/autokiss.sh index 46dc712..572dc92 100755 --- a/purple/answerscripts.d/autokiss.sh +++ b/purple/answerscripts.d/autokiss.sh @@ -1,3 +1,4 @@ #!/bin/sh #AutoKiss :-* (just wanna be polite) -echo $(echo "$ANSW_MSG" | grep -Eo ':-\*|\*IN LOVE\*|:-\{\}|\*KISSING\*'); +shuf="$(which shuf 2>/dev/null)"; [ -x "$shuf" ] || shuf="cat"; #shuffle if possible +echo $(echo "$ANSW_MSG" | grep -Eo ':-\*|\*IN LOVE\*|:-\{\}|\*KISSING\*' | "$shuf" );