summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/server.js b/server.js
index 719b288..9dedb26 100644
--- a/server.js
+++ b/server.js
@@ -827,6 +827,8 @@ function on_resign(socket) {
}
function send_chat(socket, chat) {
+ if (socket.role == "Observer")
+ return;
if (chat && socket.chat_length < chat.length) {
SLOG(socket, "<-- CHAT LOG", socket.chat_length, "..", chat.length);
socket.emit('chat', socket.chat_length, chat.slice(socket.chat_length));