diff options
-rwxr-xr-x | bollux | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bollux b/bollux index 9f5e2bb..1eb120c 100755 --- a/bollux +++ b/bollux | |||
@@ -454,10 +454,15 @@ gopher_response() { | |||
454 | die 203 "GOPHER: failed" | 454 | die 203 "GOPHER: failed" |
455 | ;; | 455 | ;; |
456 | 7) # search | 456 | 7) # search |
457 | die 207 "Not implemented" | 457 | if [[ "$url" =~ $'\t' ]]; then |
458 | run gopher_convert | run display text/gemini | ||
459 | else | ||
460 | run prompt GopherSearch | ||
461 | run blastoff "$url $REPLY" | ||
462 | fi | ||
458 | ;; | 463 | ;; |
459 | *) # something else | 464 | *) # something else |
460 | die "$((200 + ${type:-0}))" "Not implemented" | 465 | run download "$url" |
461 | ;; | 466 | ;; |
462 | esac | 467 | esac |
463 | } | 468 | } |