FIX: Certain telnet clients make the BBS crashes. #369
userVars -> uservars to match telnet-socket impl.
This commit is contained in:
parent
7723ab507c
commit
e0ecf37869
|
@ -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)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue