updated installation data to only create four categories by default, and altered colour to be less stark (heh, what does that mean anyway...). Also added an intro post

This commit is contained in:
Julian Lam
2014-10-22 13:21:37 -04:00
parent 8468a84047
commit 62d85b0e26
3 changed files with 34 additions and 75 deletions

View File

@@ -352,6 +352,11 @@ Sockets.reqFromSocket = function(socket) {
Sockets.isUserOnline = isUserOnline;
function isUserOnline(uid) {
if (!io) {
// Special handling for install script (socket.io not initialised)
return false;
}
return Array.isArray(io.sockets.manager.rooms['/uid_' + uid]);
}