From 83c7f34a48968526805f196de6b1e9b83f963c1f Mon Sep 17 00:00:00 2001 From: Sean Hinchee Date: Mon, 15 Jul 2019 02:33:43 +0000 Subject: [PATCH] migrate postnix.us ? postnix.pw --- x/mux/man.go | 10 +++++----- x/mux/newuser.go | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/x/mux/man.go b/x/mux/man.go index fe35f2fa8311c1e72551396de9fe6fd3680792ac..4d389c0df2a7e0bdb353d295f76014373194e4f9 100644 --- a/x/mux/man.go +++ b/x/mux/man.go @@ -40,12 +40,12 @@ func (m *Mux) Man(ds *discordgo.Session, dm *discordgo.Message, ctx *Context) { page += ctx.Fields[len(ctx.Fields)-1] // Should allow selection of manual categories beyond 9front - url := "http://man.postnix.us/9front/" + section + "/" + page + url := "http://man.postnix.pw/9front/" + section + "/" + page page, err := http.Get(url) if err != nil { fmt.Println("Error fetching URL, see: x/mux/man.go") - resp += "Error fetching URL. Is man.postnix.us up?" + resp += "Error fetching URL. Is man.postnix.pw up?" goto URL } defer page.Body.Close() @@ -66,7 +66,7 @@ func (m *Mux) Man(ds *discordgo.Session, dm *discordgo.Message, ctx *Context) { for i:=1; i < 9; i++ { // Should allow selection of manual categories beyond 9front - url := "http://man.postnix.us/9front/" + strconv.Itoa(i) + "/" + page + url := "http://man.postnix.pw/9front/" + strconv.Itoa(i) + "/" + page page, err := http.Get(url) defer page.Body.Close() @@ -90,7 +90,7 @@ func (m *Mux) Man(ds *discordgo.Session, dm *discordgo.Message, ctx *Context) { } } else if len(ctx.Fields) == 1 { - resp += "http://man.postnix.us/9front/\n" + resp += "http://man.postnix.pw/9front/\n" for i:=1; i < 9; i++ { resp += desc[i-1] + "\n" } @@ -183,7 +183,7 @@ func (m *Mux) Lookman(ds *discordgo.Session, dm *discordgo.Message, ctx *Context i := fields[1] page := fields[2] - url := "http://man.postnix.us/9front/" + i + "/" + page + " # " + fields[4] + "\n" + url := "http://man.postnix.pw/9front/" + i + "/" + page + " # " + fields[4] + "\n" if top { top = false diff --git a/x/mux/newuser.go b/x/mux/newuser.go index 3d3f3223c0bfeeb2c02a5ebc45650fc00126ae8e..437c57d76e5c1418a3e0b2b168d4a6d69e9719c5 100644 --- a/x/mux/newuser.go +++ b/x/mux/newuser.go @@ -15,7 +15,7 @@ Beginner's guides: http://lsub.org/who/nemo/9.intro.pdf http://fqa.9front.org/fq Read the man pages: http://man.9front.org/ (also use 'man [page name]' or 'lookman [keyword]') Read the docs: http://doc.cat-v.org/plan_9/4th_edition/papers/ (also found in /sys/doc, use 'page [file]') Wiki for additional help: https://9p.io/wiki/plan9/plan_9_wiki/ (some info may be outdated)" -Miscellaneous Plan 9 websites: http://blog.postnix.us/ https://code.9front.org/hg/ +Miscellaneous Plan 9 websites: http://blog.postnix.pw/ https://code.9front.org/hg/ http://9gridchan.org/ http://felloff.net/usr/cinap_lenrek/ ` resp += "\n"