diff --git a/app/Classes/Server.php b/app/Classes/Server.php index ab36449..9234fce 100644 --- a/app/Classes/Server.php +++ b/app/Classes/Server.php @@ -127,6 +127,7 @@ abstract class Server { $client->send(TCP_IAC.TCP_DO.TCP_OPT_TERMTYPE.TCP_IAC.TCP_SB.TCP_OPT_TERMTYPE.TCP_OPT_ECHO.TCP_IAC.TCP_SE); // Request Term Type $client->send(CLS.COFF); + $client->send('Press a key...'); // Setup VARS $timewarp = FALSE; // Is timewarp active. @@ -135,6 +136,7 @@ abstract class Server { $action = ACTION_GOTO; // Initial action. $control = FALSE; // Logic in control $mode = FALSE; // Current mode. + $save = FALSE; // $cmd = ''; // Current *command being typed in $user = new User; // The logged in user $method = collect(); // Method in control for CONTROL_METHOD @@ -405,7 +407,7 @@ abstract class Server { // If a Control method was rejected, we can clear it if ($control AND $method->count()) { - $method->pop(); + $save = $method->pop(); if ($method->count()) { $control = $method->last()->state['control']; @@ -701,8 +703,9 @@ abstract class Server { $history->pop(); if ($control AND $method->count()) { - $method->pop(); + $save = $method->pop(); + // Do we still have more nested methods to complete if ($method->count()) { $control = $method->last()->state['control'];