mirror of
https://github.com/dragonfireclient/hydra-dragonfire.git
synced 2024-11-21 10:24:01 -05:00
12 lines
256 B
Lua
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
|