registration bugfix

v1.18.x
psychobunny 12 years ago
parent 415f6c39ed
commit 9b973327a0

@ -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});
});

@ -5,7 +5,7 @@ var SocketIO = require('socket.io').listen(8081);
(function(io) {
var modules = null;
global.io = io;
module.exports.init = function() {
modules = global.modules;
}

Loading…
Cancel
Save