mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Fixed variable casting when outputting from IronPython scope.
This commit is contained in:
@@ -516,7 +516,7 @@ namespace RuriLib.LS
|
||||
{
|
||||
// Add it to the variables and print info
|
||||
var value = scope.GetVariable(name);
|
||||
data.Variables.Set(new CVar(name, (value.GetType() == typeof(string[])) ? CVar.VarType.List : CVar.VarType.Single, value));
|
||||
data.Variables.Set(new CVar(name, (value.GetType() == typeof(string[])) ? CVar.VarType.List : CVar.VarType.Single, value.ToString()));
|
||||
data.Log(new LogEntry($"SET VARIABLE {name} WITH VALUE {value}", Colors.Yellow));
|
||||
}
|
||||
catch { data.Log(new LogEntry($"COULD NOT FIND VARIABLE {name}", Colors.Tomato)); }
|
||||
|
||||
Reference in New Issue
Block a user