diff --git a/install b/install index b6ea0bf..9feff43 100755 --- a/install +++ b/install @@ -4,6 +4,18 @@ DESTDIR=${1:-/home/neale/public_html} cd $(dirname $0) +older () { + tgt=$1 + [ -f "$tgt" ] || exit 0 + + for src in "$@"; do + [ "$src" -nt "$tgt" ] && return 0 + done + + return 1 +} + + html () { target=$DESTDIR/${1%mdwn}html if older $target $1 tmpl/*; then diff --git a/mp.cgi.go b/mp.cgi.go index 00fb75d..62753e9 100644 --- a/mp.cgi.go +++ b/mp.cgi.go @@ -8,10 +8,9 @@ import ( ) var hosts = []HostEntry{ - {"h.woozle.org:30919", "Ginnie (tablet)"}, - {"h.woozle.org:44321", "Ginnie"}, - {"h.woozle.org:58000", "Amy"}, - {"h.woozle.org:29837", "Neale"}, + {"h.woozle.org:26548", "Ginnie (tablet)"}, + {"g.dirtbags.net:44321", "Ginnie"}, + {"n.dirtbags.net:29837", "Neale"}, } const MAGIC = "\x00\xff\xff\x00\xfe\xfe\xfe\xfe\xfd\xfd\xfd\xfd\x12\x34\x56\x78" @@ -51,7 +50,7 @@ type HostEntry struct { func ping(results chan<- string, e HostEntry) { defer wg.Done() if isAlive(e.host) { - results <- fmt.Sprintf("%s is playing at %s", e.owner, e.host) + results <- e.owner } } @@ -73,7 +72,7 @@ func main() { fmt.Println("") fmt.Println("Minecraft PE ping") fmt.Println("") - fmt.Println("

Are The Picketts playing Minecraft PE?

") + fmt.Println("

Who is playing Minecraft PE?

") fmt.Println("