FIX: Certain telnet clients make the BBS crashes. #369

userVars -> uservars to match telnet-socket impl.
This commit is contained in:
Bryan Ashby 2021-10-22 10:29:47 -06:00
parent 7723ab507c
commit e0ecf37869
No known key found for this signature in database
GPG Key ID: B49EB437951D2542
1 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ class TelnetClient {
case Options.NEW_ENVIRON : case Options.NEW_ENVIRON :
{ {
this._logDebug( this._logDebug(
{ vars : command.optionData.vars, userVars : command.optionData.userVars }, { vars : command.optionData.vars, uservars : command.optionData.uservars },
'New environment received' 'New environment received'
); );
@ -111,7 +111,7 @@ class TelnetClient {
const getValue = (name) => { const getValue = (name) => {
return command.optionData.vars && return command.optionData.vars &&
(command.optionData.vars.find(nv => nv.name === name) || (command.optionData.vars.find(nv => nv.name === name) ||
command.optionData.userVars.find(nv => nv.name === name) command.optionData.uservars.find(nv => nv.name === name)
); );
}; };