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

Close the connection if we get corrupted commands.

This commit is contained in:
Kane York 2015-11-19 16:55:03 -08:00
parent cf238bf650
commit 62c9659430
4 changed files with 23 additions and 9 deletions

View file

@ -99,7 +99,8 @@ func HTTPBackendUncachedPublish(w http.ResponseWriter, r *http.Request) {
count = PublishToMultiple(strings.Split(channel, ","), cm)
case MsgTargetTypeGlobal:
count = PublishToAll(cm)
case MsgTargetTypeInvalid: fallthrough
case MsgTargetTypeInvalid:
fallthrough
default:
w.WriteHeader(422)
fmt.Fprint(w, "Invalid 'scope'. must be chat, multichat, channel, or global")