Skip to content

Commit

Permalink
Merge branch 'release/33.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
alaingilbert committed Mar 24, 2020
2 parents a7cf1be + fd6f4b5 commit d9db067
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ogame.go
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,8 @@ LOOP:
}
msg := bytes.Trim(buf, "\x00")
if bytes.Equal(msg, []byte("1::")) {
_, _ = b.ws.Write([]byte("1::/chat"))
_, _ = b.ws.Write([]byte("1::/chat")) // subscribe to chat events
_, _ = b.ws.Write([]byte("1::/auctioneer")) // subscribe to auctioneer events
} else if bytes.Equal(msg, []byte("1::/chat")) {
authMsg := `5:` + strconv.FormatInt(b.sessionChatCounter, 10) + `+:/chat:{"name":"authorize","args":["` + b.ogameSession + `"]}`
_, _ = b.ws.Write([]byte(authMsg))
Expand Down

0 comments on commit d9db067

Please sign in to comment.