mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-03 00:18:31 +00:00
Default to remote command
This commit is contained in:
parent
a4bac68d02
commit
736deacf4c
1 changed files with 1 additions and 7 deletions
|
@ -21,13 +21,7 @@ const ChannelInfoDelay = 2 * time.Second
|
|||
func HandleCommand(conn *websocket.Conn, client *ClientInfo, msg ClientMessage) {
|
||||
handler, ok := CommandHandlers[msg.Command]
|
||||
if !ok {
|
||||
log.Println("[!] Unknown command", msg.Command, "- sent by client", client.ClientID, "@", conn.RemoteAddr())
|
||||
SendMessage(conn, ClientMessage{
|
||||
MessageID: msg.MessageID,
|
||||
Command: "error",
|
||||
Arguments: fmt.Sprintf("Unknown command %s", msg.Command),
|
||||
})
|
||||
return
|
||||
handler = HandleRemoteCommand
|
||||
}
|
||||
|
||||
response, err := CallHandler(handler, conn, client, msg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue