* Add {userId} arg to doors

This commit is contained in:
Bryan Ashby 2015-12-06 15:24:34 -07:00
parent 75f7d828a0
commit 6152530a57
1 changed files with 3 additions and 1 deletions

View File

@ -43,13 +43,14 @@ Door.prototype.run = function() {
var self = this;
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));
};
var restore = function(piped) {
self.client.term.output.unpipe(piped);
self.client.term.output.resume();
}
};
var sockServer;
@ -96,6 +97,7 @@ Door.prototype.run = function() {
node : self.exeInfo.node.toString(),
inhSocket : self.exeInfo.inhSocket.toString(),
srvPort : sockServer ? sockServer.address().port.toString() : '-1',
userId : self.client.user.userId.toString(),
});
}