1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-12 09:00:54 +00:00

Allow a null client_id

This commit is contained in:
Kane York 2017-09-15 12:57:22 -07:00
parent 413f62f56b
commit e0b5d92671

View file

@ -136,7 +136,7 @@ func C2SHello(conn *websocket.Conn, client *ClientInfo, msg ClientMessage) (rmsg
if client.ClientID == uuid.Nil {
client.ClientID = uuid.NewV4()
}
} else if _, ok := ary[1].(bool); ok {
} else if _, ok := ary[1].(bool); (ok || ary[1] == nil) {
// opt out
client.ClientID = AnonymousClientID
} else {