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

local m = {}

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

function m.init(t)
    log.debug('Client init', util.dump(t))
    m.info = t
end

return m