mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-25 12:08:30 +00:00
commit
107fa5cbb0
1 changed files with 2 additions and 0 deletions
|
@ -139,6 +139,8 @@ func C2SHello(conn *websocket.Conn, client *ClientInfo, msg ClientMessage) (rmsg
|
|||
} else if _, ok := ary[1].(bool); ok {
|
||||
// opt out
|
||||
client.ClientID = AnonymousClientID
|
||||
} else if ary[1] == nil {
|
||||
client.ClientID = uuid.NewV4()
|
||||
} else {
|
||||
err = ErrExpectedTwoStrings
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue