mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Fixed a couple issues with capture in utility block.
This commit is contained in:
@@ -406,7 +406,7 @@ namespace RuriLib
|
||||
switch (listAction)
|
||||
{
|
||||
case ListAction.Create:
|
||||
data.Variables.Set(new CVar(variableName, new List<string>()));
|
||||
data.Variables.Set(new CVar(variableName, new List<string>(), isCapture));
|
||||
break;
|
||||
|
||||
case ListAction.Join:
|
||||
@@ -460,7 +460,7 @@ namespace RuriLib
|
||||
{
|
||||
case VarAction.Split:
|
||||
single = data.Variables.GetSingle(varName);
|
||||
data.Variables.Set(new CVar(variableName, single.Split(new string[] { ReplaceValues(separator, data) }, StringSplitOptions.None).ToList()));
|
||||
data.Variables.Set(new CVar(variableName, single.Split(new string[] { ReplaceValues(separator, data) }, StringSplitOptions.None).ToList(), isCapture));
|
||||
break;
|
||||
}
|
||||
data.Log(new LogEntry(string.Format("Executed action {0} on variable {1}", varAction, varName), Colors.White));
|
||||
|
||||
Reference in New Issue
Block a user