diff options
Diffstat (limited to '')
-rw-r--r-- | wsmsg_unchoose.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wsmsg_unchoose.go b/wsmsg_unchoose.go index a99e3f4..6e85bab 100644 --- a/wsmsg_unchoose.go +++ b/wsmsg_unchoose.go @@ -35,6 +35,7 @@ func messageUnchooseCourse( mar []string, userID string, userCourseGroups *userCourseGroupsT, + userCourseTypes *userCourseTypesT, ) error { if atomic.LoadUint32(&state) != 2 { err := writeText(ctx, c, "E :Course selections are not open") @@ -114,6 +115,7 @@ func messageUnchooseCourse( return reportError("inconsistent user course groups") } delete(*userCourseGroups, course.Group) + (*userCourseTypes)[course.Type]-- } err = writeText(ctx, c, "N "+mar[1]) |