channel=$(echo "$PATH_INFO" | awk -F / '{print $2}')
if [ -z "$channel" ]; then
- echo "Content-type: text/plain\n"
- echo "Logged channels:"
- cat /etc/scoop-cgi/channels
- echo "
-url format: /channel/date
-date is optional, and defaults to the current day"
+ echo "Content-type: text/plain
+
+=================
+acheam's IRC logs
+=================
+
+logged channels
+---------------
+$(awk '{print " * " $0}' /etc/scoop-cgi/channels)
+
+url format
+----------
+/channel/date
+date is optional, and defaults to the current day
+
+source
+------
+https://git.armaanb.net/bin/tree/scoop-cgi
+it's in the public domain!"
exit 0
fi