Software /
code /
verse
Diff
plugins/session.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 | 78:f4188eff53a7 |
child | 250:a5ac643a7fd6 |
line wrap: on
line diff
--- a/plugins/session.lua Thu Mar 17 01:30:44 2011 +0100 +++ b/plugins/session.lua Thu Mar 17 18:33:52 2011 +0100 @@ -1,4 +1,3 @@ -local st = require "util.stanza"; local xmlns_session = "urn:ietf:params:xml:ns:xmpp-session"; function verse.plugins.session(stream) @@ -8,7 +7,7 @@ if session_feature and not session_feature:get_child("optional") then local function handle_binding(jid) stream:debug("Establishing Session..."); - stream:send_iq(st.iq({ type = "set" }):tag("session", {xmlns=xmlns_session}), + stream:send_iq(verse.iq({ type = "set" }):tag("session", {xmlns=xmlns_session}), function (reply) if reply.attr.type == "result" then stream:event("session-success");