mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Fixed the missing references to BanOnTimeout bool in Navigate block.
This commit is contained in:
@@ -379,11 +379,11 @@ TCP DISCONNECT
|
|||||||
This will spawn and execute a Navigate Block.
|
This will spawn and execute a Navigate Block.
|
||||||
|
|
||||||
Syntax:
|
Syntax:
|
||||||
NAVIGATE "URL" [TIMEOUT]
|
NAVIGATE "URL" [TIMEOUT] [BanOnTimeout?]
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
NAVIGATE "http://example.com"
|
NAVIGATE "http://example.com"
|
||||||
NAVIGATE "http://example.com" 60
|
NAVIGATE "http://example.com" 60 BanOnTimeout=True
|
||||||
</item>
|
</item>
|
||||||
<item name="Browser Action">
|
<item name="Browser Action">
|
||||||
This will spawn and execute a BrowserAction Block.
|
This will spawn and execute a BrowserAction Block.
|
||||||
|
|||||||
@@ -41,12 +41,14 @@ namespace RuriLib
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Syntax:
|
* Syntax:
|
||||||
* NAVIGATE "URL" TIMEOUT
|
* NAVIGATE "URL" [TIMEOUT] [BanOnTimeout?]
|
||||||
* */
|
* */
|
||||||
|
|
||||||
Url = LineParser.ParseLiteral(ref input, "URL");
|
Url = LineParser.ParseLiteral(ref input, "URL");
|
||||||
if (LineParser.Lookahead(ref input) == TokenType.Integer)
|
if (LineParser.Lookahead(ref input) == TokenType.Integer)
|
||||||
Timeout = LineParser.ParseInt(ref input, "TIMEOUT");
|
Timeout = LineParser.ParseInt(ref input, "TIMEOUT");
|
||||||
|
if (LineParser.Lookahead(ref input) == TokenType.Boolean)
|
||||||
|
LineParser.SetBool(ref input, this);
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -59,7 +61,8 @@ namespace RuriLib
|
|||||||
.Label(Label)
|
.Label(Label)
|
||||||
.Token("NAVIGATE")
|
.Token("NAVIGATE")
|
||||||
.Literal(Url)
|
.Literal(Url)
|
||||||
.Integer(Timeout, "Timeout");
|
.Integer(Timeout, "Timeout")
|
||||||
|
.Boolean(BanOnTimeout, "BanOnTimeout");
|
||||||
return writer.ToString();
|
return writer.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user