rapid7/metasploit-framework — pull request #84 by kernelsmith (2011-12-26 19:46:40+00:00)
Title: Adds the 'previous' command to msfconsole which will load the previously active module...

as the currently active module, adds @previous_module as a class variable (Msf::Ui::Console::CommandDispatcher class), with no other accessors. Only the 'previous' console command writes and reads the @previous_module class variable