From 2448ca576610c6d08a78823c20d4f17f8840a0b8 Mon Sep 17 00:00:00 2001 From: ruri Date: Thu, 4 Jun 2020 14:30:40 +0200 Subject: [PATCH] Fixed issue with SET PROXY command --- RuriLib/LoliScript/Parser/SetParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RuriLib/LoliScript/Parser/SetParser.cs b/RuriLib/LoliScript/Parser/SetParser.cs index 06897ef9..11200ff5 100644 --- a/RuriLib/LoliScript/Parser/SetParser.cs +++ b/RuriLib/LoliScript/Parser/SetParser.cs @@ -55,7 +55,7 @@ public static Action Parse(string line, BotData data) case "PROXY": var prox = LineParser.ParseLiteral(ref input, "PROXY", true, data); - data.Proxy = new CProxy(BlockBase.ReplaceValues(prox, data), data.Proxy.Type); + data.Proxy = new CProxy(BlockBase.ReplaceValues(prox, data), data.Proxy == null ? ProxyType.Http : data.Proxy.Type); break; case "PROXYTYPE":