mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
replaced ){ with ) {
This commit is contained in:
parent
76daceb2e7
commit
551fc943c9
20 changed files with 56 additions and 56 deletions
|
|
@ -13,25 +13,25 @@ function (User, Channel, childProcess) {
|
|||
this.lobbyUsers = {};
|
||||
}
|
||||
|
||||
Coordinator.prototype.createUser = function (socketLink){
|
||||
Coordinator.prototype.createUser = function (socketLink) {
|
||||
var user = new User(socketLink, this);
|
||||
this.assignUserToLobby(user);
|
||||
}
|
||||
|
||||
Coordinator.prototype.assignUserToLobby = function (user){
|
||||
Coordinator.prototype.assignUserToLobby = function (user) {
|
||||
if(user.channelProcess) {
|
||||
//user.channel.releaseUser(user); -> generate message
|
||||
}
|
||||
this.lobbyUsers[user.id] = user;
|
||||
}
|
||||
|
||||
Coordinator.prototype.assignUserToChannel = function (user, channelName){
|
||||
Coordinator.prototype.assignUserToChannel = function (user, channelName) {
|
||||
|
||||
if(user.channelProcess) {
|
||||
//user.channel.releaseUser(user); -> generate message
|
||||
}
|
||||
|
||||
if(!Channel.validateName(channelName)){
|
||||
if(!Channel.validateName(channelName)) {
|
||||
//TODO send validation error
|
||||
return false;
|
||||
}
|
||||
|
|
@ -62,7 +62,7 @@ function (User, Channel, childProcess) {
|
|||
delete this.lobbyUsers[user.id];
|
||||
}
|
||||
|
||||
Coordinator.prototype.removeUser = function (user){
|
||||
Coordinator.prototype.removeUser = function (user) {
|
||||
delete this.lobbyUsers[user.id];
|
||||
if(user.channelProcess) {
|
||||
//user.channel.releaseUser(user); -> generate message
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue