# HG changeset patch # User Matthew Wild # Date 1261446481 0 # Node ID 07192be5020b89de676a8dccc7777dcb2b4e0111 # Parent c40cc28ac7df59414a2d91cc8631182bd443696b plugins.bind: Requested JID should be in tag (thanks Maranda :) ) diff -r c40cc28ac7df -r 07192be5020b plugins/bind.lua --- a/plugins/bind.lua Mon Dec 21 19:28:02 2009 +0000 +++ b/plugins/bind.lua Tue Dec 22 01:48:01 2009 +0000 @@ -5,7 +5,7 @@ local function handle_features(features) if stream.bound then return; end stream:debug("Binding resource..."); - stream:send_iq(st.iq({ type = "set" }):tag("bind", {xmlns=xmlns_bind}):text(stream.jid), + stream:send_iq(st.iq({ type = "set" }):tag("bind", {xmlns=xmlns_bind}):tag("jid"):text(stream.jid), function (reply) if reply.attr.type == "result" then local result_jid = reply