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:
parent
cf238bf650
commit
62c9659430
4 changed files with 23 additions and 9 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue