From 6152530a576844bba0870a4ad3c6a4ea7a2bab23 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sun, 6 Dec 2015 15:24:34 -0700 Subject: [PATCH] * Add {userId} arg to doors --- core/door.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/door.js b/core/door.js index 3ee3cc98..4b447629 100644 --- a/core/door.js +++ b/core/door.js @@ -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(), }); }