mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
WIP - settings.prepare refactoring... because.
This commit is contained in:
@@ -9,7 +9,9 @@ var meta = require('../meta'),
|
||||
winston = require('winston'),
|
||||
server = require('./'),
|
||||
|
||||
SocketMeta = {};
|
||||
SocketMeta = {
|
||||
rooms: {}
|
||||
};
|
||||
|
||||
SocketMeta.reconnected = function(socket) {
|
||||
var uid = socket.uid,
|
||||
@@ -72,8 +74,6 @@ SocketMeta.getUsageStats = function(socket, data, callback) {
|
||||
|
||||
/* Rooms */
|
||||
|
||||
SocketMeta.rooms = {};
|
||||
|
||||
SocketMeta.rooms.enter = function(socket, data) {
|
||||
if(!data) {
|
||||
return callback(new Error('invalid data'));
|
||||
|
||||
Reference in New Issue
Block a user