From 3971900dcde58c50b85eabf0d4bcf5f20ba1114a Mon Sep 17 00:00:00 2001 From: Harvie Date: Tue, 24 Aug 2010 03:10:54 +0200 Subject: [PATCH] Autokiss now shuffles if possible --- purple/answerscripts.d/autokiss.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" ); -- 2.30.2