3a5d34b32aed — Ted Unangst 11 days ago
time has come to retire the qotd server
3 files changed, 2 insertions(+), 36 deletions(-)

M bloat.go
M docs/changelog.txt
M web.go
M bloat.go +0 -35
@@ 14,38 14,3 @@ 
 // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
 package main
-
-import (
-	"io"
-	"net"
-	"time"
-)
-
-func qotd() {
-	var qotdaddr string
-	getconfig("qotdaddr", &qotdaddr)
-	if qotdaddr == "" {
-		return
-	}
-	s, err := net.Listen("tcp", ":8017")
-	if err != nil {
-		return
-	}
-	for {
-		c, err := s.Accept()
-		if err != nil {
-			time.Sleep(time.Second)
-			continue
-		}
-		honks := getpublichonks()
-		for _, honk := range honks {
-			if !firstclass(honk) {
-				continue
-			}
-			io.WriteString(c, honk.Noise)
-			io.WriteString(c, "\n")
-			break
-		}
-		c.Close()
-	}
-}

          
M docs/changelog.txt +2 -0
@@ 4,6 4,8 @@ changelog
 
 + AVIF image support. Optional with config option convertavif.
 
+- Remove the qotd server.
+
 ### 1.4.2 Kindred Key
 
 + Fix shortcuts for alternate keymaps.

          
M web.go +0 -1
@@ 3132,7 3132,6 @@ func serve() {
 	go tracker()
 	go syndicator()
 	go bgmonitor()
-	go qotd()
 	loadLingo()
 	emuinit()