don't require final {} on :If
This commit is contained in:
parent
f1fd7f464b
commit
70a24b992c
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ Command<void> *IfCommand::parse(const std::string &command, const std::string &a
|
||||||
RefCount<Command<void> > t(0), f(0);
|
RefCount<Command<void> > t(0), f(0);
|
||||||
|
|
||||||
StringUtil::stringTokensBetween(cmds, args, blah, '{', '}');
|
StringUtil::stringTokensBetween(cmds, args, blah, '{', '}');
|
||||||
if (cmds.size() < 3)
|
if (cmds.size() < 2)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
cond = CommandParser<bool>::instance().parse(cmds[0], trusted);
|
cond = CommandParser<bool>::instance().parse(cmds[0], trusted);
|
||||||
|
|
Loading…
Reference in a new issue