registration bugfix

This commit is contained in:
psychobunny
2013-04-22 17:09:40 +00:00
parent 415f6c39ed
commit 9b973327a0
2 changed files with 3 additions and 3 deletions

View File

@@ -26,11 +26,11 @@ var RDB = require('../RedisDB.js');
RDB.set('uid:' + uid + ':password', password);
RDB.incr('user:count', function(count) {
io.sockets.emit('user.count', {count: count});
global.io.sockets.emit('user.count', {count: count});
});
RDB.lpush('user:users', username);
io.sockets.emit('user.latest', {username: username});
global.io.sockets.emit('user.latest', {username: username});
global.socket.emit('user.create', {'status': 1});
});