# HG changeset patch # User Matthew Wild # Date 1261447022 0 # Node ID afd037420977c9bc0fea7e3c0450f81848c93013 # Parent 07192be5020b89de676a8dccc7777dcb2b4e0111 plugins.bind: Requested JID^Wresource should be in ^W tag (thanks Maranda :) ) diff -r 07192be5020b -r afd037420977 plugins/bind.lua --- a/plugins/bind.lua Tue Dec 22 01:48:01 2009 +0000 +++ b/plugins/bind.lua Tue Dec 22 01:57:02 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}):tag("jid"):text(stream.jid), + stream:send_iq(st.iq({ type = "set" }):tag("bind", {xmlns=xmlns_bind}):tag("resource"):text(stream.resource), function (reply) if reply.attr.type == "result" then local result_jid = reply