Software /
code /
verse
Diff
plugins/bind.lua @ 197:7e98cf2c1d8d
plugins.*: Use verse.stanza() & co instead of require util.stanza
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 17 Mar 2011 18:33:52 +0100 |
parent | 160:5cbbfe42212e |
child | 245:19356e2150f3 |
line wrap: on
line diff
--- 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