~kris/9p

glenda

83c7f34a48968526805f196de6b1e9b83f963c1f — Sean Hinchee 7 years ago 9a6906d
migrate postnix.us ? postnix.pw
2 files changed, 6 insertions(+), 6 deletions(-)

M x/mux/man.go
M x/mux/newuser.go
M x/mux/man.go => x/mux/man.go +5 -5
@@ 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

M x/mux/newuser.go => x/mux/newuser.go +1 -1
@@ 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"