Add RMS quest. - gopher-lawn - The gopher lawn gopher directory project.
git clone git://bitreich.org/gopher-lawn/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/gopher-lawn/
Log
Files
Refs
Tags
---
commit 8fe0b8d81ba8369bec430eef32b59746daf39801
parent 613ea3b4332b9efcf0e11dfe78f65453397dd462
Author: Christoph Lohmann <20h@r-36.net>
Date:   Fri,  9 Jun 2023 19:16:04 +0200

Add RMS quest.

Diffstat:
  M submit.dcgi                         |      34 +++++++++++++++++++++----------

1 file changed, 23 insertions(+), 11 deletions(-)
---
diff --git a/submit.dcgi b/submit.dcgi
@@ -21,17 +21,29 @@ then
         printf "[7|Gopher Lawn Submission|/lawn/submit.dcgi|server|port]\n"
         printf "This will post the link to irc://irc.bitreich.org/#bitreich-lawn\n"
 else
-        /home/annna/bin/annna-say -c "#bitreich-lawn" \
-                "new link proposed: ${search}"
-
-        printf "Entry submitted\n"
-        printf "\n"
-        printf "Join #bitreich-lawn at irc.bitreich.org to talk about it.\n"
-        printf "\n"
-        printf "Here is what we already have from that same domain:\n"
-        ./search.sh "|${domain}|"
-        printf "\n"
-        printf "[7|Submit Again|/lawn/submit.dcgi|server|port]\n"
+        case "${search}" in
+        EQUEST*)
+                printf "Join us on our RMS quest!\n"
+                printf "gophers://bitreich.org/9/memecache/rms-quest.mkv\n"
+
+                /home/annna/bin/annna-say -c "#bitreich-lawn" \
+                        "${REMOTE_HOST} sent malicious request ${search}"
+                exit 0
+                ;;
+        *)
+                /home/annna/bin/annna-say -c "#bitreich-lawn" \
+                        "new link proposed: ${search}"
+
+                printf "Entry submitted\n"
+                printf "\n"
+                printf "Join #bitreich-lawn at irc.bitreich.org to talk about it.\n"
+                printf "\n"
+                printf "Here is what we already have from that same domain:\n"
+                ./search.sh "|${domain}|"
+                printf "\n"
+                printf "[7|Submit Again|/lawn/submit.dcgi|server|port]\n"
+                ;;
+        esac
 fi
 
 printf "\n"