Software /
code /
verse
Diff
plugins/bind.lua @ 457:73d4eb93657b
Update to use util.id for random ids instead of counters (thanks Zash)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 16 Mar 2023 11:41:52 +0000 |
parent | 300:b1d50f9a04c7 |
child | 490:6b2f31da9610 |
line wrap: on
line diff
--- a/plugins/bind.lua Fri Mar 03 12:10:54 2023 +0000 +++ b/plugins/bind.lua Thu Mar 16 11:41:52 2023 +0000 @@ -7,7 +7,7 @@ local function handle_features(features) if stream.bound then return; end stream:debug("Binding resource..."); - stream:send_iq(verse.iq({ type = "set" }):tag("bind", {xmlns=xmlns_bind}):tag("resource"):text(stream.resource), + stream:send_iq(verse.iq({ id="bind",type = "set" }):tag("bind", {xmlns=xmlns_bind}):tag("resource"):text(stream.resource), function (reply) if reply.attr.type == "result" then local result_jid = reply