* Add {userId} arg to doors
This commit is contained in:
parent
75f7d828a0
commit
6152530a57
|
@ -43,13 +43,14 @@ Door.prototype.run = function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
var doorData = function(data) {
|
var doorData = function(data) {
|
||||||
|
// :TODO: skip decoding if we have a match, e.g. cp437 === cp437
|
||||||
self.client.term.write(decode(data, self.exeInfo.encoding));
|
self.client.term.write(decode(data, self.exeInfo.encoding));
|
||||||
};
|
};
|
||||||
|
|
||||||
var restore = function(piped) {
|
var restore = function(piped) {
|
||||||
self.client.term.output.unpipe(piped);
|
self.client.term.output.unpipe(piped);
|
||||||
self.client.term.output.resume();
|
self.client.term.output.resume();
|
||||||
}
|
};
|
||||||
|
|
||||||
var sockServer;
|
var sockServer;
|
||||||
|
|
||||||
|
@ -96,6 +97,7 @@ Door.prototype.run = function() {
|
||||||
node : self.exeInfo.node.toString(),
|
node : self.exeInfo.node.toString(),
|
||||||
inhSocket : self.exeInfo.inhSocket.toString(),
|
inhSocket : self.exeInfo.inhSocket.toString(),
|
||||||
srvPort : sockServer ? sockServer.address().port.toString() : '-1',
|
srvPort : sockServer ? sockServer.address().port.toString() : '-1',
|
||||||
|
userId : self.client.user.userId.toString(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue