use user-provided name in /game/list/ output

This commit is contained in:
sm
2013-09-26 21:51:57 -07:00
parent f8378cf89b
commit 13c0cd047b
3 changed files with 13 additions and 7 deletions
+1
View File
@@ -49,6 +49,7 @@ func Negociate(ws *websocket.Conn, id string, width, height float64) (*bot.Confi
_ = websocket.JSON.Send(ws, bot.NewHandshake(id, false))
}
}
conf.Name = clientid.Name
return &conf, nil
case "spectator":
return nil, nil