summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'server.js')
-rw-r--r--server.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/server.js b/server.js
index d783c5f..dba7d56 100644
--- a/server.js
+++ b/server.js
@@ -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
}
}