Skip to content
Browse files

commiting because git makes overwriting too complicated

  • Loading branch information...
1 parent febc034 commit f969f5e28e413a882d1883e5825f4a787e517619 @jessehattabaugh committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 server.js
View
5 server.js
@@ -18,7 +18,7 @@ function redisDebug(err, res){
}else{
console.dir(res);
}
-};
+}
io.sockets.on('connection', function (socket) {
console.log("New connection started");
@@ -34,7 +34,8 @@ io.sockets.on('connection', function (socket) {
console.log("They say their name is "+data.plid);
socket.set('plid', data.plid, function(){
db.hget('players:'+data.plid, 'password', function(err, password){
- if(password){
+ var message = null;
+ if(password){
message = 'Enter your password';
} else {
message = 'Set your password';

0 comments on commit f969f5e

Please sign in to comment.
Something went wrong with that request. Please try again.