From dfb4f17c5f977c69c94baf36b7f12b3073cbe3ed Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sun, 10 Jul 2016 22:14:30 -0600 Subject: [PATCH] * Resp DONT to WONT NEW-ENVIRONMENT --- core/servers/telnet.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/servers/telnet.js b/core/servers/telnet.js index 7def16c8..c605cbf6 100644 --- a/core/servers/telnet.js +++ b/core/servers/telnet.js @@ -538,7 +538,11 @@ TelnetClient.prototype.handleWillCommand = function(evt) { }; TelnetClient.prototype.handleWontCommand = function(evt) { - this.connectionDebug(evt, 'WONT'); + if('new environment' === evt.option) { + this.dont.new_environment(); + } else { + this.connectionDebug(evt, 'WONT'); + } }; TelnetClient.prototype.handleDoCommand = function(evt) {