1
0
Fork 0
mirror of https://github.com/dragonfireclient/hydra-dragonfire.git synced 2024-11-21 10:24:01 -05:00
hydra-dragonfire/builtin/client.lua
2022-05-30 00:09:33 +02:00

12 lines
256 B
Lua

--[[ builtin/client.lua ]]--
function package.loaded.client()
local address, name, password = unpack(arg)
local client = hydra.client(address)
client:enable("auth")
client.auth:username(name)
client.auth:password(password or "")
return client
end