1
0
Fork 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
1 changed files with 3 additions and 3 deletions

View File

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