master v0.1.13
bel 2023-04-02 11:15:51 -06:00
parent 87e63c27df
commit 934158b7a3
1 changed files with 2 additions and 1 deletions

View File

@ -216,10 +216,11 @@ func (v01 *V01) serveGMStatus(w io.Writer) {
} }
users[k] = result users[k] = result
} }
yaml.NewEncoder(w).Encode(map[string]interface{}{ b, _ := yaml.Marshal(map[string]interface{}{
"Players": len(v01.cfg.Players), "Players": len(v01.cfg.Players),
"Users": users, "Users": users,
}) })
w.Write(b)
} }
func (v01 *V01) serveGMSomeoneSaidAlias(w http.ResponseWriter, r *http.Request) { func (v01 *V01) serveGMSomeoneSaidAlias(w http.ResponseWriter, r *http.Request) {