summaryrefslogtreecommitdiff
path: root/script-beta/provider/client.lua
blob: a2671597d11059d8b05a797d91a22a9672f43cd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
local nonil = require 'without-check-nil'

local m = {}

function m.client()
    nonil.enable()
    local name = m.info.clientInfo.name
    nonil.disable()
    return name
end

function m.init(t)
    m.info = t
end

return m