summaryrefslogtreecommitdiffstats
path: root/src/Root.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-07 23:35:24 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-07 23:35:24 +0100
commitb779d84663024751e814a324717c1b9b4dcad6a6 (patch)
tree32841c2daba551e50ee59141e60bc78d24069754 /src/Root.cpp
parentFixed water starting fires (diff)
downloadcuberite-b779d84663024751e814a324717c1b9b4dcad6a6.tar
cuberite-b779d84663024751e814a324717c1b9b4dcad6a6.tar.gz
cuberite-b779d84663024751e814a324717c1b9b4dcad6a6.tar.bz2
cuberite-b779d84663024751e814a324717c1b9b4dcad6a6.tar.lz
cuberite-b779d84663024751e814a324717c1b9b4dcad6a6.tar.xz
cuberite-b779d84663024751e814a324717c1b9b4dcad6a6.tar.zst
cuberite-b779d84663024751e814a324717c1b9b4dcad6a6.zip
Diffstat (limited to '')
-rw-r--r--src/Root.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Root.cpp b/src/Root.cpp
index f15bfd366..1c81878f9 100644
--- a/src/Root.cpp
+++ b/src/Root.cpp
@@ -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);
}
}