diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-01 20:00:22 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-01 20:00:22 +0800 |
commit | 71e3ff51d3fb21f3e78a3948809ce4ae92613de2 (patch) | |
tree | 936752e4377a48281cd4b1752b53bcda1352d0bb /script/service/telemetry.lua | |
parent | 8077e3e08f2dd799ef9b5335005f1bf85d6340cd (diff) | |
download | lua-language-server-71e3ff51d3fb21f3e78a3948809ce4ae92613de2.zip |
cleanup
Diffstat (limited to 'script/service/telemetry.lua')
-rw-r--r-- | script/service/telemetry.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/script/service/telemetry.lua b/script/service/telemetry.lua index 19fe86f1..f3a3cf12 100644 --- a/script/service/telemetry.lua +++ b/script/service/telemetry.lua @@ -65,7 +65,7 @@ end timer.wait(5, function () timer.loop(300, function () - if not config.Lua.telemetry.enable then + if not config.get 'Lua.telemetry.enable' then return end local suc, link = pcall(net.connect, 'tcp', 'moe-moe.love', 11577) @@ -83,7 +83,7 @@ timer.wait(5, function () end end)() timer.loop(1, function () - if not config.Lua.telemetry.enable then + if not config.get 'Lua.telemetry.enable' then return end net.update() @@ -93,7 +93,7 @@ end) local m = {} function m.updateConfig() - if config.Lua.telemetry.enable ~= nil then + if config.get 'Lua.telemetry.enable' ~= nil then return end if m.hasShowedMessage then |