Fixed the missing references to BanOnTimeout bool in Navigate block.

This commit is contained in:
ruri
2019-04-09 20:21:24 +02:00
parent 60b2efecfc
commit 7688b8bc3b
2 changed files with 7 additions and 4 deletions
+5 -2
View File
@@ -41,12 +41,14 @@ namespace RuriLib
/*
* Syntax:
* NAVIGATE "URL" TIMEOUT
* NAVIGATE "URL" [TIMEOUT] [BanOnTimeout?]
* */
Url = LineParser.ParseLiteral(ref input, "URL");
if (LineParser.Lookahead(ref input) == TokenType.Integer)
Timeout = LineParser.ParseInt(ref input, "TIMEOUT");
if (LineParser.Lookahead(ref input) == TokenType.Boolean)
LineParser.SetBool(ref input, this);
return this;
}
@@ -59,7 +61,8 @@ namespace RuriLib
.Label(Label)
.Token("NAVIGATE")
.Literal(Url)
.Integer(Timeout, "Timeout");
.Integer(Timeout, "Timeout")
.Boolean(BanOnTimeout, "BanOnTimeout");
return writer.ToString();
}