diff options
Diffstat (limited to 'wsmsg_hello.go')
-rw-r--r-- | wsmsg_hello.go | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/wsmsg_hello.go b/wsmsg_hello.go index 02e8ac1..08e8e8c 100644 --- a/wsmsg_hello.go +++ b/wsmsg_hello.go @@ -71,13 +71,19 @@ func messageHello( if err != nil { return err } - var confirmedString string - if confirmed { - confirmedString = "1" + if !confirmed { + err = writeText(ctx, c, "NC") + if err != nil { + return wrapError(errCannotSend, err) + } } else { - confirmedString = "0" + err = writeText(ctx, c, "YC") + if err != nil { + return wrapError(errCannotSend, err) + } } - err = writeText(ctx, c, "HI "+confirmedString+" :"+strings.Join(courseIDs, ",")) + + err = writeText(ctx, c, "HI :"+strings.Join(courseIDs, ",")) if err != nil { return wrapError(errCannotSend, err) } |