14e1f0c6d83154e0ca08800630cd8c30d74439d2
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #4286 from RobinDaugherty/rand-quote-failure
Rand-quote plugin overflows stack when site is unreachable
Diff
1diff --git a/plugins/rand-quote/rand-quote.plugin.zsh b/plugins/rand-quote/rand-quote.plugin.zsh
2index c3bf6234ec61157034f1080d3bed8c1257a2f551..8f345d9aa1e04626c45195f07253ec2cccc5aba4 100644
3--- a/plugins/rand-quote/rand-quote.plugin.zsh
4+++ b/plugins/rand-quote/rand-quote.plugin.zsh
5@@ -18,8 +18,6 @@ if [[ -x `which curl` ]]; then
6 W=$(echo "$Q" | sed -e 's/.*\/quotes\///g' -e 's/<.*//g' -e 's/.*">//g')
7 if [ "$W" -a "$TXT" ]; then
8 echo "${WHO_COLOR}${W}${COLON_COLOR}: ${TEXT_COLOR}“${TXT}”${END_COLOR}"
9- else
10- quote
11 fi
12 }
13 #quote