added /tick command

This commit is contained in:
2021-11-26 15:45:36 -05:00
parent 1e93533246
commit 742209988b
9 changed files with 61 additions and 21 deletions

View File

@@ -79,10 +79,8 @@ void LuaConsole::simplify(const StringVec &words) {
synerr("/quit takes no arguments");
}
} else if (words[0] == "tick") {
if ((words.size() == 2)&&(util::validinteger(words[1]))) {
// OK
} else {
synerr("/tick [optional-timestamp]");
if (words.size() != 1) {
synerr("/tick takes no arguments");
}
} else {
synerr("unrecognized command");