func (h *Handler) CommandSetAutos(g overpower.GameDat, dayBools [7]bool) (errServer, errUser error) { if g == nil { return nil, NewError("USER HAS NO GAME IN PROGRESS") } g.SetAutoDays(dayBools) err := h.M.Close() if my, bad := Check(err, "command setauto failure on updating game", "game", g); bad { return my, nil } return nil, nil }