mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-20 17:55:53 +02:00
Handle lack of command in odd state
This commit is contained in:
parent
c7ff033737
commit
c63a32a9ba
1 changed files with 5 additions and 0 deletions
|
@ -544,6 +544,11 @@ util.inherits(TelnetClient, baseClient.Client);
|
||||||
// Telnet Command/Option handling
|
// Telnet Command/Option handling
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
TelnetClient.prototype.handleTelnetEvent = function(evt) {
|
TelnetClient.prototype.handleTelnetEvent = function(evt) {
|
||||||
|
|
||||||
|
if(!evt.command) {
|
||||||
|
return this.connectionWarn( { evt : evt }, 'No command for event');
|
||||||
|
}
|
||||||
|
|
||||||
// handler name e.g. 'handleWontCommand'
|
// handler name e.g. 'handleWontCommand'
|
||||||
const handlerName = `handle${evt.command.charAt(0).toUpperCase()}${evt.command.substr(1)}Command`;
|
const handlerName = `handle${evt.command.charAt(0).toUpperCase()}${evt.command.substr(1)}Command`;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue