mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-02 16:08:31 +00:00
missed error case
This commit is contained in:
parent
613d13652f
commit
88b356177a
2 changed files with 7 additions and 2 deletions
|
@ -137,6 +137,9 @@ func C2SHello(conn *websocket.Conn, client *ClientInfo, msg ClientMessage) (rmsg
|
|||
} else if _, ok := ary[1].(bool); ok {
|
||||
// opt out
|
||||
client.ClientID = AnonymousClientID
|
||||
} else {
|
||||
err = ErrExpectedTwoStrings
|
||||
return
|
||||
}
|
||||
|
||||
uniqueUserChannel <- client.ClientID
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue