diff options
Diffstat (limited to 'script/client.lua')
-rw-r--r-- | script/client.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/script/client.lua b/script/client.lua new file mode 100644 index 00000000..a2671597 --- /dev/null +++ b/script/client.lua @@ -0,0 +1,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 |