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

fix errors without a message ID

This commit is contained in:
Kane York 2017-09-15 16:02:44 -07:00
parent e725dc248c
commit ad1296e0ed

View file

@ -462,12 +462,12 @@ func C2SHandleBunchedCommand(conn *websocket.Conn, client *ClientInfo, msg Clien
go func() { go func() {
result := <-resultCh result := <-resultCh
var reply ClientMessage var reply ClientMessage
reply.MessageID = msg.MessageID
if result.Err != nil { if result.Err != nil {
reply.Command = ErrorCommand reply.Command = ErrorCommand
reply.Arguments = result.Err.Error() reply.Arguments = result.Err.Error()
} else { } else {
reply.Command = SuccessCommand reply.Command = SuccessCommand
reply.MessageID = msg.MessageID
reply.origArguments = result.Val.(string) reply.origArguments = result.Val.(string)
reply.parseOrigArguments() reply.parseOrigArguments()
} }