fix: complete switch in StrToUserTeam and remove AI comments
This commit is contained in:
@ -12,9 +12,14 @@ func StrToUserTeam(s string) WordColor {
|
||||
switch s {
|
||||
case "blue":
|
||||
return UserTeamBlue
|
||||
// finish this switch; ai!
|
||||
case "red":
|
||||
return UserTeamRed
|
||||
case "none":
|
||||
return UserTeamNone
|
||||
}
|
||||
return WordColorUserTeamNone
|
||||
}
|
||||
|
||||
// every gohtml page should be recreated on reload in the needed state
|
||||
type UserState struct {
|
||||
Username string
|
||||
Room RoomPublic
|
||||
|
Reference in New Issue
Block a user