mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-24 11:38:27 +02:00
* Fix 'newMark' -> 'newIndicator' in message list
* Better Telnet trace filter similar to SSH
This commit is contained in:
parent
e9836e18db
commit
4988559569
6 changed files with 38 additions and 7 deletions
|
@ -496,6 +496,12 @@ function TelnetClient(input, output) {
|
|||
self.log.debug(err); // :TODO: probably something better...
|
||||
self.emit('end');
|
||||
});
|
||||
|
||||
this.connectionDebug = function(info, msg) {
|
||||
if(Config.servers.telnet.debugConnections) {
|
||||
self.log.trace(info, 'Telnet: ' + msg);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
util.inherits(TelnetClient, baseClient.Client);
|
||||
|
@ -529,12 +535,12 @@ TelnetClient.prototype.handleWillCommand = function(evt) {
|
|||
this.requestNewEnvironment();
|
||||
} else {
|
||||
// :TODO: temporary:
|
||||
this.log.trace(evt, 'WILL');
|
||||
this.connectionDebug(evt, 'WILL');
|
||||
}
|
||||
};
|
||||
|
||||
TelnetClient.prototype.handleWontCommand = function(evt) {
|
||||
this.log.trace(evt, 'WONT');
|
||||
this.connectionDebug(evt, 'WONT');
|
||||
};
|
||||
|
||||
TelnetClient.prototype.handleDoCommand = function(evt) {
|
||||
|
@ -552,12 +558,12 @@ TelnetClient.prototype.handleDoCommand = function(evt) {
|
|||
this.wont.encrypt();
|
||||
} else {
|
||||
// :TODO: temporary:
|
||||
this.log.trace(evt, 'DO');
|
||||
this.connectionDebug(evt, 'DO');
|
||||
}
|
||||
};
|
||||
|
||||
TelnetClient.prototype.handleDontCommand = function(evt) {
|
||||
this.log.trace(evt, 'dont');
|
||||
this.connectionDebug(evt, 'dont');
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue