diff options
Diffstat (limited to '')
-rw-r--r-- | wsmsg_choose.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wsmsg_choose.go b/wsmsg_choose.go index 9b8708b..79fee35 100644 --- a/wsmsg_choose.go +++ b/wsmsg_choose.go @@ -40,6 +40,7 @@ func messageChooseCourse( mar []string, userID string, userCourseGroups *userCourseGroupsT, + userCourseTypes *userCourseTypesT, ) error { if atomic.LoadUint32(&state) != 2 { err := writeText(ctx, c, "E :Course selections are not open") @@ -171,6 +172,7 @@ func messageChooseCourse( * concurrently for one connection. */ (*userCourseGroups)[course.Group] = struct{}{} + (*userCourseTypes)[course.Type]++ err = writeText(ctx, c, "Y "+mar[1]) if err != nil { |