# HG changeset patch # User Kim Alvefur # Date 1334874826 -7200 # Node ID 65fb9ae79014d312a65af47a84ba5fc040056bc9 # Parent b674f5ca85d42bfeabbdcd44f58bc17399d88479 plugins.archive: Import util.stanza directly and use it diff -r b674f5ca85d4 -r 65fb9ae79014 plugins/archive.lua --- a/plugins/archive.lua Fri Apr 20 00:33:18 2012 +0200 +++ b/plugins/archive.lua Fri Apr 20 00:33:46 2012 +0200 @@ -3,13 +3,14 @@ -- (ie not XEP-0136) local verse = require "verse"; +local st = require "util.stanza"; local xmlns_mam = "urn:xmpp:mam:tmp" local uuid = require "util.uuid".generate; function verse.plugins.archive(stream) function stream:query_archive(where, query_params, callback) local queryid = uuid(); - local query_st = verse.iq{ type="get", to=where } + local query_st = st.iq{ type="get", to = where } :tag("query", { xmlns = xmlns_mam, queryid = queryid }); local params = { "with", "start", "end" };