From 7f40c20e2cee43666a346e497a7fe86273123830 Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Tue, 28 Jul 2015 17:01:10 +0100 Subject: [PATCH] Fixing build issues --- web.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web.go b/web.go index 046d3ed..50bb4f0 100644 --- a/web.go +++ b/web.go @@ -36,7 +36,7 @@ func loadPage(title string) (*Page, error) { func handler(w http.ResponseWriter, r *http.Request) { var uname = token_client[r.URL.Path[1:]] - if uname == nil { + if uname == "" { fmt.Fprintf(w, "I don't know you") } else { fmt.Fprintf(w, "Hi there, I love %s!", uname) @@ -50,8 +50,8 @@ func Webserver() { } func GetWebAddress(user *gumble.User) { - if client_token[user.Name] != nil { - token_client[client_token[user.Name]] = nil + if client_token[user.Name] != "" { + token_client[client_token[user.Name]] = "" } client_token[user.Name] = randSeq(10) token_client[client_token[user.Name]] = user.Name