diff options
| author | Jules Laplace <jules@okfoc.us> | 2013-03-05 03:26:04 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2013-03-05 03:26:04 -0500 |
| commit | 890bc8ded144a0555d3c947ef377295bcdbdc724 (patch) | |
| tree | 1666b6cd65821072f44e21da53355db524659db6 | |
| parent | 69c1fcf0fa4cfb7a4eeea44988c17e5bdc9f2cba (diff) | |
typo
| -rw-r--r-- | server.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
