mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
fixed #57
This commit is contained in:
parent
810a74a28b
commit
39bdac0d7b
12 changed files with 118 additions and 100 deletions
|
|
@ -7,7 +7,7 @@ define([
|
|||
function (Parent, ProtocolHelper, Nc) {
|
||||
|
||||
function User (socketLink, coordinator) {
|
||||
Parent.call(this, socketLink.id);
|
||||
Parent.call(this, socketLink.id, {});
|
||||
|
||||
this.coordinator = coordinator;
|
||||
this.socketLink = socketLink;
|
||||
|
|
@ -58,7 +58,11 @@ function (Parent, ProtocolHelper, Nc) {
|
|||
return;
|
||||
}
|
||||
|
||||
this.channelPipe.send('channel', { addUser: this.id });
|
||||
var userOptions = {
|
||||
id: this.id,
|
||||
nickname: options.nickname
|
||||
}
|
||||
this.channelPipe.send('channel', { addUser: userOptions });
|
||||
};
|
||||
|
||||
User.prototype.onGameCommand = function(options) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue