--- a/plugins/bind.lua Thu Mar 17 01:30:44 2011 +0100 +++ b/plugins/bind.lua Thu Mar 17 18:33:52 2011 +0100 @@ -1,11 +1,10 @@ -local st = require "util.stanza"; local xmlns_bind = "urn:ietf:params:xml:ns:xmpp-bind"; function verse.plugins.bind(stream) 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("resource"):text(stream.resource), + stream:send_iq(verse.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