diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2022-05-29 23:09:53 +0200 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2022-05-29 23:09:53 +0200 |
commit | e8c35eb2780cf17890f2905f44d1a1d170c40b37 (patch) | |
tree | d5e80c11f6ca1f46eb1ae3aa88a3e2c8e2507597 /builtin/client.lua | |
parent | 535595e9823f020b8f02ae657f259966814d1906 (diff) | |
download | hydra-dragonfire-e8c35eb2780cf17890f2905f44d1a1d170c40b37.tar.xz |
Implement sending of packets
Diffstat (limited to 'builtin/client.lua')
-rw-r--r-- | builtin/client.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/builtin/client.lua b/builtin/client.lua new file mode 100644 index 0000000..b4ed556 --- /dev/null +++ b/builtin/client.lua @@ -0,0 +1,11 @@ +--[[ 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 |