summaryrefslogtreecommitdiff
path: root/wsmsg_choose.go
diff options
context:
space:
mode:
Diffstat (limited to 'wsmsg_choose.go')
-rw-r--r--wsmsg_choose.go2
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 {