From bdf401c443d3a03905aaf07dff2401259c749fcf Mon Sep 17 00:00:00 2001 From: Andy Janata Date: Thu, 12 Jan 2012 13:07:19 -0800 Subject: [PATCH] don't display ourselves connecting at the beginning --- WebContent/js/cah.longpoll.handlers.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/WebContent/js/cah.longpoll.handlers.js b/WebContent/js/cah.longpoll.handlers.js index 9d9222a..6a4121e 100644 --- a/WebContent/js/cah.longpoll.handlers.js +++ b/WebContent/js/cah.longpoll.handlers.js @@ -12,7 +12,10 @@ cah.longpoll.ErrorCodeHandlers.not_registered = function(data) { }; cah.longpoll.EventHandlers.new_player = function(data) { - cah.log.status(data.nickname + " has connected."); + // don't display our own join + if (data.nickname != cah.nickname) { + cah.log.status(data.nickname + " has connected."); + } }; cah.longpoll.EventHandlers.player_leave = function(data) {