diff options
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2852,6 +2852,9 @@ function handle_player_message(socket, cmd, arg) { case "restore": on_restore(socket, arg) break + default: + send_message(socket, "error", "Invalid server command: " + cmd) + break } } @@ -2866,6 +2869,9 @@ function handle_observer_message(socket, cmd, arg) { case 'query': on_query(socket, arg[0], arg[1]) break + default: + send_message(socket, "error", "Invalid server command: " + cmd) + break } } |