1
0

Console trims its commands before executing 'em

This commit is contained in:
Tiger Wang 2013-12-07 22:35:24 +00:00
parent 405f67dac8
commit b779d84663

View File

@ -77,11 +77,11 @@ void cRoot::InputThread(void * a_Params)
while (!(self.m_bStop || self.m_bRestart) && std::cin.good()) while (!(self.m_bStop || self.m_bRestart) && std::cin.good())
{ {
std::string Command; AString Command;
std::getline(std::cin, Command); std::getline(std::cin, Command);
if (!Command.empty()) if (!Command.empty())
{ {
self.ExecuteConsoleCommand(Command, Output); self.ExecuteConsoleCommand(TrimString(Command), Output);
} }
} }