Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/commandbuffer.cc')
-rw-r--r--src/core/commandbuffer.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/commandbuffer.cc b/src/core/commandbuffer.cc
index 67e90d9..adb3bac 100644
--- a/src/core/commandbuffer.cc
+++ b/src/core/commandbuffer.cc
@@ -23,7 +23,8 @@ void exec(const char *text)
std::stringstream cmdstream(text);
std::string cmdname;
- cmdstream >> cmdname;
+ if (!(cmdstream >> cmdname))
+ return;
// is it a function
Func f = func::find(cmdname);
@@ -45,7 +46,9 @@ void exec(const char *text)
args += c;
(*cv) = args;
}
- con_print << cmdname << cv->text() << std::endl;
+
+ con_print << cmdname << " " << cv->text() << std::endl;
+ return;
}
con_print << "unknown command '" << cmdname << "'" << std::endl;