GIT.Harvie.CZ
/
mirrors
/
libpurple-core-answerscripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe6fec7
)
Autokiss now shuffles if possible
author
Harvie
<tomas@mudrunka.cz>
Tue, 24 Aug 2010 01:10:54 +0000
(
03:10
+0200)
committer
Harvie
<tomas@mudrunka.cz>
Tue, 24 Aug 2010 01:10:54 +0000
(
03:10
+0200)
purple/answerscripts.d/autokiss.sh
patch
|
blob
|
blame
|
history
diff --git
a/purple/answerscripts.d/autokiss.sh
b/purple/answerscripts.d/autokiss.sh
index 46dc7126e7b9e07aec3056195837da539f533b87..572dc928f6cda7e8f6b6c274fedc25d36091eacb 100755
(executable)
--- 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" );
This page took
0.115877 seconds
and
4
git commands to generate.