From 890bc8ded144a0555d3c947ef377295bcdbdc724 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 5 Mar 2013 03:26:04 -0500 Subject: typo --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server.js') diff --git a/server.js b/server.js index 9a40359..68bdd62 100644 --- a/server.js +++ b/server.js @@ -154,7 +154,7 @@ Channel.prototype.pushImage = function(image){ } Channel.prototype.addVote = function(data, user){ - if (data.nick in this.images && not( user.nick in this.voters )) { + if (data.nick in this.images && not( user.nick in this.votes )) { this.voteCount++; this.votes[ user.nick ] = true; this.scores[ data.nick ] += 1; @@ -201,7 +201,7 @@ io.sockets.on( 'connection', function(socket){ game.join(data, socket); game.checkState(); io.sockets.emit('event-join', data); - socket.emit('event-state', this.getState()); + socket.emit('event-state', game.getState()); } ); socket.on( 'event-message', function(data){ game.pushMessage(data); -- cgit v1.2.3-70-g09d2