1
0
Fork 0
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:
Kane York 2015-11-08 21:20:32 -08:00
parent a4bac68d02
commit 736deacf4c

View file

@ -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)